264 lines
9.7 KiB
C#
264 lines
9.7 KiB
C#
using System;
|
|
using System.Collections.Specialized;
|
|
using System.ComponentModel;
|
|
using System.IO;
|
|
using System.Net.Cache;
|
|
using System.Runtime.InteropServices;
|
|
using System.Text;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Net
|
|
{
|
|
/// <summary>Provides common methods for sending data to and receiving data from a resource identified by a URI.</summary>
|
|
// Token: 0x02000270 RID: 624
|
|
[Token(Token = "0x2000270")]
|
|
[ComVisible(true)]
|
|
public class WebClient : Component
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Net.WebClient" /> class.</summary>
|
|
// Token: 0x06000FC5 RID: 4037 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000FC5")]
|
|
[Address(RVA = "0xAF05C0", Offset = "0xAEF5C0", VA = "0x180AF05C0")]
|
|
public WebClient()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000FC6 RID: 4038 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000FC6")]
|
|
[Address(RVA = "0xAEF5C0", Offset = "0xAEE5C0", VA = "0x180AEF5C0")]
|
|
private void ClearWebClientState()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000FC7 RID: 4039 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000FC7")]
|
|
[Address(RVA = "0xAEF690", Offset = "0xAEE690", VA = "0x180AEF690")]
|
|
private void CompleteWebClientState()
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets or sets the network credentials that are sent to the host and used to authenticate the request.</summary>
|
|
/// <returns>An <see cref="T:System.Net.ICredentials" /> containing the authentication credentials for the request. The default is <see langword="null" />.</returns>
|
|
// Token: 0x17000308 RID: 776
|
|
// (get) Token: 0x06000FC8 RID: 4040 RVA: 0x00002050 File Offset: 0x00000250
|
|
// (set) Token: 0x06000FC9 RID: 4041 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x17000308")]
|
|
public ICredentials Credentials
|
|
{
|
|
[Token(Token = "0x6000FC8")]
|
|
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x6000FC9")]
|
|
[Address(RVA = "0x415830", Offset = "0x414830", VA = "0x180415830")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Returns a <see cref="T:System.Net.WebRequest" /> object for the specified resource.</summary>
|
|
/// <param name="address">A <see cref="T:System.Uri" /> that identifies the resource to request.</param>
|
|
/// <returns>A new <see cref="T:System.Net.WebRequest" /> object for the specified resource.</returns>
|
|
// Token: 0x06000FCA RID: 4042 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000FCA")]
|
|
[Address(RVA = "0xAEFF80", Offset = "0xAEEF80", VA = "0x180AEFF80", Slot = "16")]
|
|
protected virtual WebRequest GetWebRequest(Uri address)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns the <see cref="T:System.Net.WebResponse" /> for the specified <see cref="T:System.Net.WebRequest" />.</summary>
|
|
/// <param name="request">A <see cref="T:System.Net.WebRequest" /> that is used to obtain the response.</param>
|
|
/// <returns>A <see cref="T:System.Net.WebResponse" /> containing the response for the specified <see cref="T:System.Net.WebRequest" />.</returns>
|
|
// Token: 0x06000FCB RID: 4043 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000FCB")]
|
|
[Address(RVA = "0xAF00C0", Offset = "0xAEF0C0", VA = "0x180AF00C0", Slot = "17")]
|
|
protected virtual WebResponse GetWebResponse(WebRequest request)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Opens a readable stream for the data downloaded from a resource with the URI specified as a <see cref="T:System.String" />.</summary>
|
|
/// <param name="address">The URI specified as a <see cref="T:System.String" /> from which to download data.</param>
|
|
/// <returns>A <see cref="T:System.IO.Stream" /> used to read data from a resource.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="address" /> parameter is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.Net.WebException">The URI formed by combining <see cref="P:System.Net.WebClient.BaseAddress" />, <paramref name="address" /> is invalid.
|
|
/// -or-
|
|
/// An error occurred while downloading data.</exception>
|
|
// Token: 0x06000FCC RID: 4044 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000FCC")]
|
|
[Address(RVA = "0xAF0100", Offset = "0xAEF100", VA = "0x180AF0100")]
|
|
public Stream OpenRead(string address)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Opens a readable stream for the data downloaded from a resource with the URI specified as a <see cref="T:System.Uri" /></summary>
|
|
/// <param name="address">The URI specified as a <see cref="T:System.Uri" /> from which to download data.</param>
|
|
/// <returns>A <see cref="T:System.IO.Stream" /> used to read data from a resource.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="address" /> parameter is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.Net.WebException">The URI formed by combining <see cref="P:System.Net.WebClient.BaseAddress" />, <paramref name="address" /> is invalid.
|
|
/// -or-
|
|
/// An error occurred while downloading data.</exception>
|
|
// Token: 0x06000FCD RID: 4045 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000FCD")]
|
|
[Address(RVA = "0xAF02B0", Offset = "0xAEF2B0", VA = "0x180AF02B0")]
|
|
public Stream OpenRead(Uri address)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06000FCE RID: 4046 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000FCE")]
|
|
[Address(RVA = "0xAEF4F0", Offset = "0xAEE4F0", VA = "0x180AEF4F0")]
|
|
private static void AbortRequest(WebRequest request)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000FCF RID: 4047 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000FCF")]
|
|
[Address(RVA = "0xAEF6A0", Offset = "0xAEE6A0", VA = "0x180AEF6A0")]
|
|
private void CopyHeadersTo(WebRequest request)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000FD0 RID: 4048 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000FD0")]
|
|
[Address(RVA = "0xAEFAF0", Offset = "0xAEEAF0", VA = "0x180AEFAF0")]
|
|
private Uri GetUri(string path)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06000FD1 RID: 4049 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000FD1")]
|
|
[Address(RVA = "0xAEFC50", Offset = "0xAEEC50", VA = "0x180AEFC50")]
|
|
private Uri GetUri(Uri address)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06000FD2 RID: 4050 RVA: 0x000079B0 File Offset: 0x00005BB0
|
|
[Token(Token = "0x6000FD2")]
|
|
[Address(RVA = "0xAEF5B0", Offset = "0xAEE5B0", VA = "0x180AEF5B0")]
|
|
private bool AnotherCallInProgress(int callNesting)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x04000940 RID: 2368
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000940")]
|
|
private Uri m_baseAddress;
|
|
|
|
// Token: 0x04000941 RID: 2369
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4000941")]
|
|
private ICredentials m_credentials;
|
|
|
|
// Token: 0x04000942 RID: 2370
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4000942")]
|
|
private WebHeaderCollection m_headers;
|
|
|
|
// Token: 0x04000943 RID: 2371
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4000943")]
|
|
private NameValueCollection m_requestParameters;
|
|
|
|
// Token: 0x04000944 RID: 2372
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4000944")]
|
|
private WebResponse m_WebResponse;
|
|
|
|
// Token: 0x04000945 RID: 2373
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4000945")]
|
|
private WebRequest m_WebRequest;
|
|
|
|
// Token: 0x04000946 RID: 2374
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x4000946")]
|
|
private Encoding m_Encoding;
|
|
|
|
// Token: 0x04000947 RID: 2375
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x4000947")]
|
|
private string m_Method;
|
|
|
|
// Token: 0x04000948 RID: 2376
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x4000948")]
|
|
private long m_ContentLength;
|
|
|
|
// Token: 0x04000949 RID: 2377
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x4000949")]
|
|
private bool m_Cancelled;
|
|
|
|
// Token: 0x0400094A RID: 2378
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x400094A")]
|
|
private WebClient.ProgressData m_Progress;
|
|
|
|
// Token: 0x0400094B RID: 2379
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x400094B")]
|
|
private IWebProxy m_Proxy;
|
|
|
|
// Token: 0x0400094C RID: 2380
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x400094C")]
|
|
private bool m_ProxySet;
|
|
|
|
// Token: 0x0400094D RID: 2381
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x400094D")]
|
|
private RequestCachePolicy m_CachePolicy;
|
|
|
|
// Token: 0x0400094E RID: 2382
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x98")]
|
|
[Token(Token = "0x400094E")]
|
|
private int m_CallNesting;
|
|
|
|
// Token: 0x02000271 RID: 625
|
|
[Token(Token = "0x2000271")]
|
|
private class ProgressData
|
|
{
|
|
// Token: 0x06000FD3 RID: 4051 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000FD3")]
|
|
[Address(RVA = "0xADF160", Offset = "0xADE160", VA = "0x180ADF160")]
|
|
internal void Reset()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400094F RID: 2383
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400094F")]
|
|
internal long BytesSent;
|
|
|
|
// Token: 0x04000950 RID: 2384
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000950")]
|
|
internal long TotalBytesToSend;
|
|
|
|
// Token: 0x04000951 RID: 2385
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000951")]
|
|
internal long BytesReceived;
|
|
|
|
// Token: 0x04000952 RID: 2386
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000952")]
|
|
internal long TotalBytesToReceive;
|
|
|
|
// Token: 0x04000953 RID: 2387
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4000953")]
|
|
internal bool HasUploadPhase;
|
|
}
|
|
}
|
|
}
|