terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
HttpWebResponse.cs
Go to the documentation of this file.
1using System;
2using System.IO;
5
6namespace System.Net
7{
8 // Token: 0x0200025D RID: 605
11 {
12 // Token: 0x0600103A RID: 4154 RVA: 0x000335A8 File Offset: 0x000317A8
14 {
15 }
16
17 // Token: 0x0600103B RID: 4155 RVA: 0x000335BC File Offset: 0x000317BC
18 internal HttpWebResponse(global::System.Uri uri, string method, HttpStatusCode status, WebHeaderCollection headers)
19 {
20 this.uri = uri;
22 this.statusCode = status;
23 string text = HttpStatusDescription.Get(status);
25 this.webHeaders = headers;
26 if (!true)
27 {
28 }
29 this.version = 1;
30 }
31
32 // Token: 0x0600103C RID: 4156 RVA: 0x00033604 File Offset: 0x00031804
33 internal HttpWebResponse(global::System.Uri uri, string method, WebResponseStream stream, CookieContainer container)
34 {
35 this.uri = uri;
38 if (stream.<Headers>k__BackingField == null)
39 {
40 }
41 Version <Version>k__BackingField = stream.<Version>k__BackingField;
42 this.version = <Version>k__BackingField;
43 HttpStatusCode <StatusCode>k__BackingField = stream.<StatusCode>k__BackingField;
44 this.statusCode = <StatusCode>k__BackingField;
46 if (stream.<StatusDescription>k__BackingField == null)
47 {
48 string text = HttpStatusDescription.Get(<StatusCode>k__BackingField);
50 }
51 this.contentLength = (long)<StatusCode>k__BackingField;
52 bool flag = string.IsNullOrEmpty(webHeaderCollection["Content-Length"]);
53 if (container != null)
54 {
55 this.cookie_container = container;
56 this.FillCookies();
57 }
58 string text2 = this.webHeaders["Content-Encoding"];
59 bool flag2 = text2 == "gzip";
60 DecompressionMethods auto_decomp = stream.<Request>k__BackingField.auto_decomp;
61 bool flag3 = text2 == "deflate";
62 DecompressionMethods auto_decomp2 = stream.<Request>k__BackingField.auto_decomp;
63 }
64
65 // Token: 0x0600103D RID: 4157 RVA: 0x000336F0 File Offset: 0x000318F0
66 [Obsolete("Serialization is obsoleted for this type", false)]
68 {
69 int num = 1;
70 base..ctor();
71 if (num == 0)
72 {
73 }
74 Type type;
75 object value = serializationInfo.GetValue("uri", type);
76 if (value != null)
77 {
79 return;
80 }
81 long @int = serializationInfo.GetInt64("contentLength");
82 this.contentLength = @int;
83 string @string = serializationInfo.GetString("contentType");
84 this.contentType = @string;
85 string string2 = serializationInfo.GetString("method");
87 string string3 = serializationInfo.GetString("statusDescription");
89 object obj;
90 if (obj != null)
91 {
93 return;
94 }
95 Type type2;
96 object value2 = serializationInfo.GetValue("version", type2);
97 if (value2 != null)
98 {
100 return;
101 }
102 Type type3;
103 object value3 = serializationInfo.GetValue("statusCode", type3);
104 }
105
106 // Token: 0x17000399 RID: 921
107 // (get) Token: 0x0600103E RID: 4158 RVA: 0x000337B0 File Offset: 0x000319B0
108 public string CharacterSet
109 {
110 get
111 {
112 if (this != null)
113 {
114 string text;
115 return text;
116 }
117 return "ISO-8859-1";
118 }
119 }
120
121 // Token: 0x1700039A RID: 922
122 // (get) Token: 0x0600103F RID: 4159 RVA: 0x000337CC File Offset: 0x000319CC
123 public string ContentEncoding
124 {
125 get
126 {
127 this.CheckDisposed();
128 return this.webHeaders["Content-Encoding"];
129 }
130 }
131
132 // Token: 0x1700039B RID: 923
133 // (get) Token: 0x06001040 RID: 4160 RVA: 0x000337F0 File Offset: 0x000319F0
134 public override long ContentLength
135 {
136 get
137 {
138 return this.contentLength;
139 }
140 }
141
142 // Token: 0x1700039C RID: 924
143 // (get) Token: 0x06001041 RID: 4161 RVA: 0x00033804 File Offset: 0x00031A04
144 public override string ContentType
145 {
146 get
147 {
148 /*
149An exception occurred when decompiling this method (06001041)
150
151ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Net.HttpWebResponse::get_ContentType()
152
153 ---> System.Exception: Basic block has to end with unconditional control flow.
154{
155 Block_0:
156 stloc:string(var_0_1E, callgetter:string(NameValueCollection::get_Item, ldfld:WebHeaderCollection[exp:NameValueCollection](HttpWebResponse::webHeaders, ldloc:HttpWebResponse(this)), ldstr:string("Content-Type")))
157 stfld:string(HttpWebResponse::contentType, ldloc:HttpWebResponse(this), ldloc:string(var_0_1E))
158 brtrue(IL_0000, ldloc:string[exp:bool](var_0_1E))
159}
160
161 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
162 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
163 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
164 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
165 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
166 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
167 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
168 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
169 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
170 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
171 --- End of inner exception stack trace ---
172 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
173 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
174*/;
175 }
176 }
177
178 // Token: 0x1700039D RID: 925
179 // (get) Token: 0x06001042 RID: 4162 RVA: 0x0003383C File Offset: 0x00031A3C
180 // (set) Token: 0x06001043 RID: 4163 RVA: 0x00033858 File Offset: 0x00031A58
182 {
183 get
184 {
185 /*
186An exception occurred when decompiling this method (06001042)
187
188ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Net.CookieCollection System.Net.HttpWebResponse::get_Cookies()
189
190 ---> System.Exception: Basic block has to end with unconditional control flow.
191{
192 IL_0000:
193 call:void(HttpWebResponse::CheckDisposed, ldloc:HttpWebResponse(this))
194 brtrue(IL_0000, ldfld:CookieCollection[exp:bool](HttpWebResponse::cookieCollection, ldloc:HttpWebResponse(this)))
195}
196
197 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
198 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
199 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
200 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
201 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
202 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
203 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
204 --- End of inner exception stack trace ---
205 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
206 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
207*/;
208 }
209 set
210 {
211 this.CheckDisposed();
212 }
213 }
214
215 // Token: 0x1700039E RID: 926
216 // (get) Token: 0x06001044 RID: 4164 RVA: 0x0003386C File Offset: 0x00031A6C
218 {
219 get
220 {
221 return this.webHeaders;
222 }
223 }
224
225 // Token: 0x06001045 RID: 4165 RVA: 0x00002050 File Offset: 0x00000250
227 {
228 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
229 }
230
231 // Token: 0x1700039F RID: 927
232 // (get) Token: 0x06001046 RID: 4166 RVA: 0x00033880 File Offset: 0x00031A80
233 [MonoTODO]
234 public override bool IsMutuallyAuthenticated
235 {
236 get
237 {
238 /*
239An exception occurred when decompiling this method (06001046)
240
241ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Net.HttpWebResponse::get_IsMutuallyAuthenticated()
242
243 ---> System.Exception: Basic block has to end with unconditional control flow.
244{
245 Block_0:
246 stloc:Exception(var_0_05, call:Exception(HttpWebResponse::GetMustImplement))
247}
248
249 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
250 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
251 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
252 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
253 --- End of inner exception stack trace ---
254 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
255 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
256*/;
257 }
258 }
259
260 // Token: 0x170003A0 RID: 928
261 // (get) Token: 0x06001047 RID: 4167 RVA: 0x00033894 File Offset: 0x00031A94
263 {
264 get
265 {
266 /*
267An exception occurred when decompiling this method (06001047)
268
269ICSharpCode.Decompiler.DecompilerException: Error decompiling System.DateTime System.Net.HttpWebResponse::get_LastModified()
270
271 ---> System.Exception: Basic block has to end with unconditional control flow.
272{
273 Block_0:
274 call:void(HttpWebResponse::CheckDisposed, ldloc:HttpWebResponse(this))
275 stloc:DateTime(var_0_1B, call:DateTime(MonoHttpDate::Parse, callgetter:string(NameValueCollection::get_Item, ldfld:WebHeaderCollection[exp:NameValueCollection](HttpWebResponse::webHeaders, ldloc:HttpWebResponse(this)), ldstr:string("Last-Modified"))))
276 stloc:DateTime(var_2_23, callgetter:DateTime(DateTime::get_Now))
277}
278
279 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
280 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
281 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
282 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
283 --- End of inner exception stack trace ---
284 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
285 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
286*/;
287 }
288 }
289
290 // Token: 0x170003A1 RID: 929
291 // (get) Token: 0x06001048 RID: 4168 RVA: 0x000338C8 File Offset: 0x00031AC8
292 public virtual string Method
293 {
294 get
295 {
296 this.CheckDisposed();
297 return this.method;
298 }
299 }
300
301 // Token: 0x170003A2 RID: 930
302 // (get) Token: 0x06001049 RID: 4169 RVA: 0x000338E4 File Offset: 0x00031AE4
304 {
305 get
306 {
307 this.CheckDisposed();
308 return this.version;
309 }
310 }
311
312 // Token: 0x170003A3 RID: 931
313 // (get) Token: 0x0600104A RID: 4170 RVA: 0x00033900 File Offset: 0x00031B00
314 public override global::System.Uri ResponseUri
315 {
316 get
317 {
318 this.CheckDisposed();
319 return this.uri;
320 }
321 }
322
323 // Token: 0x170003A4 RID: 932
324 // (get) Token: 0x0600104B RID: 4171 RVA: 0x0003391C File Offset: 0x00031B1C
325 public string Server
326 {
327 get
328 {
329 this.CheckDisposed();
330 return this.webHeaders["Server"];
331 }
332 }
333
334 // Token: 0x170003A5 RID: 933
335 // (get) Token: 0x0600104C RID: 4172 RVA: 0x00033940 File Offset: 0x00031B40
337 {
338 get
339 {
340 return this.statusCode;
341 }
342 }
343
344 // Token: 0x170003A6 RID: 934
345 // (get) Token: 0x0600104D RID: 4173 RVA: 0x00033954 File Offset: 0x00031B54
346 public virtual string StatusDescription
347 {
348 get
349 {
350 this.CheckDisposed();
351 return this.statusDescription;
352 }
353 }
354
355 // Token: 0x170003A7 RID: 935
356 // (get) Token: 0x0600104E RID: 4174 RVA: 0x00033970 File Offset: 0x00031B70
357 public override bool SupportsHeaders
358 {
359 get
360 {
361 return true;
362 }
363 }
364
365 // Token: 0x0600104F RID: 4175 RVA: 0x00033980 File Offset: 0x00031B80
366 public string GetResponseHeader(string headerName)
367 {
368 this.CheckDisposed();
369 return this.webHeaders[headerName];
370 }
371
372 // Token: 0x06001050 RID: 4176 RVA: 0x000339A0 File Offset: 0x00031BA0
373 public override Stream GetResponseStream()
374 {
375 /*
376An exception occurred when decompiling this method (06001050)
377
378ICSharpCode.Decompiler.DecompilerException: Error decompiling System.IO.Stream System.Net.HttpWebResponse::GetResponseStream()
379
380 ---> System.Exception: Basic block has to end with unconditional control flow.
381{
382 IL_001B:
383 brtrue(IL_0000, ldstr:string[exp:bool]("HEAD"))
384}
385
386 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
387 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
388 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
389 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
390 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
391 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
392 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
393 --- End of inner exception stack trace ---
394 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
395 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
396*/;
397 }
398
399 // Token: 0x06001051 RID: 4177 RVA: 0x000339D0 File Offset: 0x00031BD0
403
404 // Token: 0x06001052 RID: 4178 RVA: 0x000339E0 File Offset: 0x00031BE0
406 {
407 global::System.Uri uri = this.uri;
408 serializationInfo.AddValue("uri", uri);
409 long num = this.contentLength;
410 serializationInfo.AddValue("contentLength", num);
411 string text = this.contentType;
412 serializationInfo.AddValue("contentType", text);
413 string text2 = this.method;
414 serializationInfo.AddValue("method", text2);
415 string text3 = this.statusDescription;
416 serializationInfo.AddValue("statusDescription", text3);
418 serializationInfo.AddValue("cookieCollection", cookieCollection);
419 Version version = this.version;
420 serializationInfo.AddValue("version", version);
422 }
423
424 // Token: 0x06001053 RID: 4179 RVA: 0x00033A80 File Offset: 0x00031C80
425 public override void Close()
426 {
427 if (this != null)
428 {
429 return;
430 }
431 }
432
433 // Token: 0x06001054 RID: 4180 RVA: 0x00033A94 File Offset: 0x00031C94
435 {
436 }
437
438 // Token: 0x06001055 RID: 4181 RVA: 0x00033AA4 File Offset: 0x00031CA4
439 protected override void Dispose(bool disposing)
440 {
441 this.disposed = true;
442 base.Dispose(true);
443 }
444
445 // Token: 0x06001056 RID: 4182 RVA: 0x00033AC0 File Offset: 0x00031CC0
446 private void CheckDisposed()
447 {
448 /*
449An exception occurred when decompiling this method (06001056)
450
451ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void System.Net.HttpWebResponse::CheckDisposed()
452
453 ---> System.Exception: Basic block has to end with unconditional control flow.
454{
455 IL_0009:
456 stloc:Type(var_0_0F, call:Type(object::GetType, ldloc:HttpWebResponse[exp:object](this)))
457}
458
459 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
460 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
461 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
462 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
463 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
464 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
465 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
466 --- End of inner exception stack trace ---
467 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
468 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
469*/;
470 }
471
472 // Token: 0x06001057 RID: 4183 RVA: 0x00033ADC File Offset: 0x00031CDC
473 private void FillCookies()
474 {
476 if (webHeaderCollection != null)
477 {
478 if (webHeaderCollection != null)
479 {
480 CookieContainer cookieContainer = this.cookie_container;
481 global::System.Uri uri = this.uri;
482 return;
483 }
484 long num = 0L;
485 if (this.webHeaders != null)
486 {
488 global::System.Uri uri2 = this.uri;
489 int num2;
490 if (num != 0L && num2 != 0)
491 {
492 return;
493 }
494 }
495 }
496 }
497
498 // Token: 0x04000CD4 RID: 3284
499 private global::System.Uri uri;
500
501 // Token: 0x04000CD5 RID: 3285
503
504 // Token: 0x04000CD6 RID: 3286
506
507 // Token: 0x04000CD7 RID: 3287
508 private string method;
509
510 // Token: 0x04000CD8 RID: 3288
512
513 // Token: 0x04000CD9 RID: 3289
515
516 // Token: 0x04000CDA RID: 3290
517 private string statusDescription;
518
519 // Token: 0x04000CDB RID: 3291
520 private long contentLength;
521
522 // Token: 0x04000CDC RID: 3292
523 private string contentType;
524
525 // Token: 0x04000CDD RID: 3293
527
528 // Token: 0x04000CDE RID: 3294
529 private bool disposed;
530
531 // Token: 0x04000CDF RID: 3295
532 private Stream stream;
533 }
534}
class f__AnonymousType0<< Count > j__TPar
static readonly long
static string Get(HttpStatusCode code)
HttpWebResponse(global::System.Uri uri, string method, HttpStatusCode status, WebHeaderCollection headers)
override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
HttpWebResponse(SerializationInfo serializationInfo, StreamingContext streamingContext)
override Stream GetResponseStream()
override global::System.Uri ResponseUri
CookieCollection cookieCollection
static Exception GetMustImplement()
override bool IsMutuallyAuthenticated
virtual CookieCollection Cookies
string GetResponseHeader(string headerName)
HttpWebResponse(global::System.Uri uri, string method, WebResponseStream stream, CookieContainer container)
override WebHeaderCollection Headers
virtual HttpStatusCode StatusCode
override void Dispose(bool disposing)
WebHeaderCollection webHeaders
void AddValue(string name, object value, Type type)
Uri(string uriString)
Definition Uri.cs:279
void GetObjectData(SerializationInfo info, StreamingContext context)