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

◆ MyGetRequestStreamAsync()

Task< Stream > System.Net.HttpWebRequest.MyGetRequestStreamAsync ( CancellationToken cancellationToken)
inlineprivate

Definition at line 1222 of file HttpWebRequest.cs.

1223 {
1224 int num4;
1225 do
1226 {
1227 bool flag = this.method == "GET";
1228 bool flag2 = this.method == "CONNECT";
1229 bool flag3 = this.method == "HEAD";
1230 bool flag4 = this.method == "TRACE";
1231 if (this.method == null)
1232 {
1233 goto IL_00F2;
1234 }
1235 long num = this.contentLength;
1236 if (!this.sendChunked && !this.allowBuffering && this.keepAlive)
1237 {
1238 goto IL_00FF;
1239 }
1240 string transferEncoding = this.TransferEncoding;
1241 if (transferEncoding != null && !this.sendChunked)
1242 {
1243 bool flag5 = transferEncoding.Trim() != "";
1244 }
1245 object obj = this.locker;
1246 if (this.getResponseCalled)
1247 {
1248 goto IL_00FF;
1249 }
1250 string text;
1251 if (this.currentOperation == null)
1252 {
1253 text = this.method;
1254 int num2 = 1;
1255 this.gotRequestStream = num2 != 0;
1257 }
1258 long num3 = 0L;
1259 num4 = 21;
1260 if (text != null)
1261 {
1262 Monitor.Exit(obj);
1263 }
1264 if (num3 != 0L)
1265 {
1266 goto IL_00F9;
1267 }
1268 }
1269 while (num4 != 0);
1270 WebOperation webOperation;
1271 return webOperation.GetRequestStream();
1272 IL_00F2:
1273 WebException ex = HttpWebRequest.CreateRequestAbortedException();
1274 IL_00F9:
1275 throw new OutOfMemoryException();
1276 IL_00FF:
1277 return "Content-Length not set";
1278 }
class f__AnonymousType0<< Count > j__TPar
static void Exit(object obj)
Definition Monitor.cs:47

References System.Net.HttpWebRequest.allowBuffering, System.Net.HttpWebRequest.contentLength, System.Net.HttpWebRequest.CreateRequestAbortedException(), System.Net.HttpWebRequest.currentOperation, System.Threading.Monitor.Exit(), System.Net.WebOperation.GetRequestStream(), System.Net.HttpWebRequest.getResponseCalled, j__TPar, System.Net.HttpWebRequest.keepAlive, System.L, System.Net.HttpWebRequest.locker, System.Net.HttpWebRequest.method, System.obj, System.Net.HttpWebRequest.sendChunked, System.text, and System.Net.HttpWebRequest.TransferEncoding.