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
System.Net.WebClient Class Reference
+ Inheritance diagram for System.Net.WebClient:

Classes

struct  d__112
 
struct  d__150
 
struct  d__152
 
class  ProgressData
 
class  WebClientWriteStream
 

Public Member Functions

 WebClient ()
 
byte[] DownloadData (string address)
 
byte[] DownloadData (global::System.Uri address)
 
void DownloadFile (string address, string fileName)
 
void DownloadFile (global::System.Uri address, string fileName)
 
Stream OpenRead (string address)
 
Stream OpenRead (global::System.Uri address)
 
Stream OpenWrite (string address)
 
Stream OpenWrite (global::System.Uri address)
 
Stream OpenWrite (string address, string method)
 
Stream OpenWrite (global::System.Uri address, string method)
 
byte[] UploadData (string address, byte[] data)
 
byte[] UploadData (global::System.Uri address, byte[] data)
 
byte[] UploadData (string address, string method, byte[] data)
 
byte[] UploadData (global::System.Uri address, string method, byte[] data)
 
byte[] UploadFile (string address, string fileName)
 
byte[] UploadFile (global::System.Uri address, string fileName)
 
byte[] UploadFile (string address, string method, string fileName)
 
byte[] UploadFile (global::System.Uri address, string method, string fileName)
 
byte[] UploadValues (string address, global::System.Collections.Specialized.NameValueCollection data)
 
byte[] UploadValues (global::System.Uri address, global::System.Collections.Specialized.NameValueCollection data)
 
byte[] UploadValues (string address, string method, global::System.Collections.Specialized.NameValueCollection data)
 
byte[] UploadValues (global::System.Uri address, string method, global::System.Collections.Specialized.NameValueCollection data)
 
string UploadString (string address, string data)
 
string UploadString (global::System.Uri address, string data)
 
string UploadString (string address, string method, string data)
 
string UploadString (global::System.Uri address, string method, string data)
 
string DownloadString (string address)
 
string DownloadString (global::System.Uri address)
 
void OpenReadAsync (global::System.Uri address)
 
void OpenReadAsync (global::System.Uri address, object userToken)
 
void OpenWriteAsync (global::System.Uri address)
 
void OpenWriteAsync (global::System.Uri address, string method)
 
void OpenWriteAsync (global::System.Uri address, string method, object userToken)
 
void DownloadStringAsync (global::System.Uri address)
 
void DownloadStringAsync (global::System.Uri address, object userToken)
 
void DownloadDataAsync (global::System.Uri address)
 
void DownloadDataAsync (global::System.Uri address, object userToken)
 
void DownloadFileAsync (global::System.Uri address, string fileName)
 
void DownloadFileAsync (global::System.Uri address, string fileName, object userToken)
 
void UploadStringAsync (global::System.Uri address, string data)
 
void UploadStringAsync (global::System.Uri address, string method, string data)
 
void UploadStringAsync (global::System.Uri address, string method, string data, object userToken)
 
void UploadDataAsync (global::System.Uri address, byte[] data)
 
void UploadDataAsync (global::System.Uri address, string method, byte[] data)
 
void UploadDataAsync (global::System.Uri address, string method, byte[] data, object userToken)
 
void UploadFileAsync (global::System.Uri address, string fileName)
 
void UploadFileAsync (global::System.Uri address, string method, string fileName)
 
void UploadFileAsync (global::System.Uri address, string method, string fileName, object userToken)
 
void UploadValuesAsync (global::System.Uri address, global::System.Collections.Specialized.NameValueCollection data)
 
void UploadValuesAsync (global::System.Uri address, string method, global::System.Collections.Specialized.NameValueCollection data)
 
void UploadValuesAsync (global::System.Uri address, string method, global::System.Collections.Specialized.NameValueCollection data, object userToken)
 
void CancelAsync ()
 
Task< string > DownloadStringTaskAsync (string address)
 
Task< string > DownloadStringTaskAsync (global::System.Uri address)
 
Task< StreamOpenReadTaskAsync (string address)
 
Task< StreamOpenReadTaskAsync (global::System.Uri address)
 
Task< StreamOpenWriteTaskAsync (string address)
 
Task< StreamOpenWriteTaskAsync (global::System.Uri address)
 
Task< StreamOpenWriteTaskAsync (string address, string method)
 
Task< StreamOpenWriteTaskAsync (global::System.Uri address, string method)
 
Task< string > UploadStringTaskAsync (string address, string data)
 
Task< string > UploadStringTaskAsync (global::System.Uri address, string data)
 
Task< string > UploadStringTaskAsync (string address, string method, string data)
 
Task< string > UploadStringTaskAsync (global::System.Uri address, string method, string data)
 
Task< byte[]> DownloadDataTaskAsync (string address)
 
Task< byte[]> DownloadDataTaskAsync (global::System.Uri address)
 
Task DownloadFileTaskAsync (string address, string fileName)
 
Task DownloadFileTaskAsync (global::System.Uri address, string fileName)
 
Task< byte[]> UploadDataTaskAsync (string address, byte[] data)
 
Task< byte[]> UploadDataTaskAsync (global::System.Uri address, byte[] data)
 
Task< byte[]> UploadDataTaskAsync (string address, string method, byte[] data)
 
Task< byte[]> UploadDataTaskAsync (global::System.Uri address, string method, byte[] data)
 
Task< byte[]> UploadFileTaskAsync (string address, string fileName)
 
Task< byte[]> UploadFileTaskAsync (global::System.Uri address, string fileName)
 
Task< byte[]> UploadFileTaskAsync (string address, string method, string fileName)
 
Task< byte[]> UploadFileTaskAsync (global::System.Uri address, string method, string fileName)
 
Task< byte[]> UploadValuesTaskAsync (string address, global::System.Collections.Specialized.NameValueCollection data)
 
Task< byte[]> UploadValuesTaskAsync (string address, string method, global::System.Collections.Specialized.NameValueCollection data)
 
Task< byte[]> UploadValuesTaskAsync (global::System.Uri address, global::System.Collections.Specialized.NameValueCollection data)
 
Task< byte[]> UploadValuesTaskAsync (global::System.Uri address, string method, global::System.Collections.Specialized.NameValueCollection data)
 

Protected Member Functions

virtual void OnDownloadStringCompleted (DownloadStringCompletedEventArgs e)
 
virtual void OnDownloadDataCompleted (DownloadDataCompletedEventArgs e)
 
virtual void OnDownloadFileCompleted (global::System.ComponentModel.AsyncCompletedEventArgs e)
 
virtual void OnDownloadProgressChanged (DownloadProgressChangedEventArgs e)
 
virtual void OnUploadStringCompleted (UploadStringCompletedEventArgs e)
 
virtual void OnUploadDataCompleted (UploadDataCompletedEventArgs e)
 
virtual void OnUploadFileCompleted (UploadFileCompletedEventArgs e)
 
virtual void OnUploadValuesCompleted (UploadValuesCompletedEventArgs e)
 
virtual void OnUploadProgressChanged (UploadProgressChangedEventArgs e)
 
virtual void OnOpenReadCompleted (OpenReadCompletedEventArgs e)
 
virtual void OnOpenWriteCompleted (OpenWriteCompletedEventArgs e)
 
virtual WebRequest GetWebRequest (global::System.Uri address)
 
virtual WebResponse GetWebResponse (WebRequest request)
 
virtual WebResponse GetWebResponse (WebRequest request, IAsyncResult result)
 
virtual void OnWriteStreamClosed (WriteStreamClosedEventArgs e)
 

Properties

DownloadStringCompletedEventHandler DownloadStringCompleted
 
DownloadDataCompletedEventHandler DownloadDataCompleted
 
global::System.ComponentModel.AsyncCompletedEventHandler DownloadFileCompleted
 
UploadStringCompletedEventHandler UploadStringCompleted
 
UploadDataCompletedEventHandler UploadDataCompleted
 
UploadFileCompletedEventHandler UploadFileCompleted
 
UploadValuesCompletedEventHandler UploadValuesCompleted
 
OpenReadCompletedEventHandler OpenReadCompleted
 
OpenWriteCompletedEventHandler OpenWriteCompleted
 
DownloadProgressChangedEventHandler DownloadProgressChanged
 
UploadProgressChangedEventHandler UploadProgressChanged
 
Encoding Encoding [get, set]
 
string BaseAddress [get, set]
 
ICredentials Credentials [get, set]
 
bool UseDefaultCredentials [get, set]
 
WebHeaderCollection Headers [get, set]
 
global::System.Collections.Specialized.NameValueCollection QueryString [get, set]
 
WebHeaderCollection ResponseHeaders [get]
 
IWebProxy Proxy [get, set]
 
global::System.Net.Cache.RequestCachePolicy CachePolicy [get, set]
 
bool IsBusy [get]
 
bool AllowReadStreamBuffering [get, set]
 
bool AllowWriteStreamBuffering [get, set]
 
WriteStreamClosedEventHandler WriteStreamClosed
 

Private Member Functions

void StartOperation ()
 
global::System.ComponentModel.AsyncOperation StartAsyncOperation (object userToken)
 
void EndOperation ()
 
Task< WebResponseGetWebResponseTaskAsync (WebRequest request)
 
byte[] DownloadDataInternal (global::System.Uri address, [Out] WebRequest request)
 
byte[] UploadDataInternal (global::System.Uri address, string method, byte[] data, [Out] WebRequest request)
 
void OpenFileInternal (bool needsHeaderAndBoundary, string fileName, FileStream fs, byte[] buffer, byte[] formHeaderBytes, byte[] boundaryBytes)
 
byte[] GetValuesToUpload (global::System.Collections.Specialized.NameValueCollection data)
 
void CopyHeadersTo (WebRequest request)
 
global::System.Uri GetUri (string address)
 
global::System.Uri GetUri (global::System.Uri address)
 
byte[] DownloadBits (WebRequest request, Stream writeStream)
 
void DownloadBitsAsync (WebRequest request, Stream writeStream, global::System.ComponentModel.AsyncOperation asyncOp, Action< byte[], Exception, global::System.ComponentModel.AsyncOperation > completionDelegate)
 
byte[] UploadBits (WebRequest request, Stream readStream, byte[] buffer, int chunkSize, byte[] header, byte[] footer)
 
void UploadBitsAsync (WebRequest request, Stream readStream, byte[] buffer, int chunkSize, byte[] header, byte[] footer, global::System.ComponentModel.AsyncOperation asyncOp, Action< byte[], Exception, global::System.ComponentModel.AsyncOperation > completionDelegate)
 
string GetStringUsingEncoding (WebRequest request, byte[] data)
 
string MapToDefaultMethod (global::System.Uri address)
 
void InvokeOperationCompleted (global::System.ComponentModel.AsyncOperation asyncOp, SendOrPostCallback callback, global::System.ComponentModel.AsyncCompletedEventArgs eventArgs)
 
void DownloadStringAsyncCallback (byte[] returnBytes, Exception exception, object state)
 
void DownloadDataAsyncCallback (byte[] returnBytes, Exception exception, object state)
 
void DownloadFileAsyncCallback (byte[] returnBytes, Exception exception, object state)
 
void HandleCompletion< T, TAsyncCompletedEventArgs, TCompletionDelegate > (TaskCompletionSource< T > tcs, TAsyncCompletedEventArgs e, Func< TAsyncCompletedEventArgs, T > getResult, TCompletionDelegate handler, Action< WebClient, TCompletionDelegate > unregisterHandler)
 
void PostProgressChanged (global::System.ComponentModel.AsyncOperation asyncOp, WebClient.ProgressData progress)
 
void< StartAsyncOperationb__78_0 (object arg)
 
void< StartAsyncOperationb__78_1 (object arg)
 
void< StartAsyncOperationb__78_2 (object arg)
 
void< StartAsyncOperationb__78_3 (object arg)
 
void< StartAsyncOperationb__78_4 (object arg)
 
void< StartAsyncOperationb__78_5 (object arg)
 
void< StartAsyncOperationb__78_6 (object arg)
 
void< StartAsyncOperationb__78_7 (object arg)
 
void< StartAsyncOperationb__78_8 (object arg)
 
void< StartAsyncOperationb__78_9 (object arg)
 
void< StartAsyncOperationb__78_10 (object arg)
 
void< UploadStringAsyncb__179_0 (byte[] bytesResult, Exception error, global::System.ComponentModel.AsyncOperation uploadAsyncOp)
 

Static Private Member Functions

static void AbortRequest (WebRequest request)
 
static bool ByteArrayHasPrefix (byte[] prefix, byte[] byteArray)
 
static string UrlEncode (string str)
 
static byte[] UrlEncodeBytesToBytesInternal (byte[] bytes, int offset, int count, bool alwaysCreateReturnValue)
 
static char IntToHex (int n)
 
static bool IsSafe (char ch)
 
static Exception GetExceptionToPropagate (Exception e)
 
static void ThrowIfNull (object argument, string parameterName)
 
static WebClient ()
 

Private Attributes

global::System.Uri _baseAddress
 
ICredentials _credentials
 
WebHeaderCollection _headers
 
global::System.Collections.Specialized.NameValueCollection _requestParameters
 
WebResponse _webResponse
 
WebRequest _webRequest
 
Encoding _encoding
 
string _method
 
long _contentLength
 
bool _initWebClientAsync
 
bool _canceled
 
WebClient.ProgressData _progress
 
IWebProxy _proxy
 
bool _proxySet
 
int _callNesting
 
global::System.ComponentModel.AsyncOperation _asyncOp
 
SendOrPostCallback _downloadDataOperationCompleted
 
SendOrPostCallback _openReadOperationCompleted
 
SendOrPostCallback _openWriteOperationCompleted
 
SendOrPostCallback _downloadStringOperationCompleted
 
SendOrPostCallback _downloadFileOperationCompleted
 
SendOrPostCallback _uploadStringOperationCompleted
 
SendOrPostCallback _uploadDataOperationCompleted
 
SendOrPostCallback _uploadFileOperationCompleted
 
SendOrPostCallback _uploadValuesOperationCompleted
 
SendOrPostCallback _reportDownloadProgressChanged
 
SendOrPostCallback _reportUploadProgressChanged
 
global::System.Net.Cache.RequestCachePolicy< CachePolicyk__BackingField
 
bool< AllowReadStreamBufferingk__BackingField
 
bool< AllowWriteStreamBufferingk__BackingField
 

Static Private Attributes

const int DefaultCopyBufferLength = 8192
 
const int DefaultDownloadBufferLength = 65536
 
const string DefaultUploadFileContentType = "application/octet-stream"
 
const string UploadFileContentType = "multipart/form-data"
 
const string UploadValuesContentType = "application/x-www-form-urlencoded"
 
static readonly char[] s_parseContentTypeSeparators
 
static readonly Encoding[] s_knownEncodings
 

Detailed Description

Definition at line 19 of file WebClient.cs.


The documentation for this class was generated from the following file: