Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetWebRequest()

virtual WebRequest System.Net.WebClient.GetWebRequest ( Uri address)
inlineprotectedvirtual

Definition at line 428 of file WebClient.cs.

429 {
430 WebRequest webRequest = WebRequest.Create(address);
431 CopyHeadersTo(webRequest);
432 if (Credentials != null)
433 {
434 webRequest.Credentials = Credentials;
435 }
436 if (_method != null)
437 {
438 webRequest.Method = _method;
439 }
440 if (_contentLength != -1)
441 {
442 webRequest.ContentLength = _contentLength;
443 }
444 if (_proxySet)
445 {
446 webRequest.Proxy = _proxy;
447 }
448 if (CachePolicy != null)
449 {
450 webRequest.CachePolicy = CachePolicy;
451 }
452 return webRequest;
453 }
ICredentials? Credentials
Definition WebClient.cs:173
void CopyHeadersTo(WebRequest request)
Definition WebClient.cs:940
RequestCachePolicy? CachePolicy
Definition WebClient.cs:241

References System.Net.WebClient._contentLength, System.Net.WebClient._method, System.Net.WebClient._proxy, System.Net.WebClient._proxySet, System.Net.WebClient.CachePolicy, System.Net.WebClient.CopyHeadersTo(), System.Net.WebRequest.Create(), and System.Net.WebClient.Credentials.

Referenced by System.Net.WebClient.DownloadDataAsync(), System.Net.WebClient.DownloadDataInternal(), System.Net.WebClient.DownloadFile(), System.Net.WebClient.DownloadFileAsync(), System.Net.WebClient.DownloadStringAsync(), System.Net.WebClient.OpenRead(), System.Net.WebClient.OpenReadAsync(), System.Net.WebClient.OpenWrite(), System.Net.WebClient.OpenWriteAsync(), System.Net.WebClient.UploadDataAsync(), System.Net.WebClient.UploadDataInternal(), System.Net.WebClient.UploadFile(), System.Net.WebClient.UploadFileAsync(), System.Net.WebClient.UploadStringAsync(), System.Net.WebClient.UploadValues(), and System.Net.WebClient.UploadValuesAsync().