Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

248 lines
10 KiB
C#

using System;
using System.ComponentModel;
using System.IO;
using System.Runtime.Serialization;
using Cpp2IlInjected;
namespace System.Net
{
/// <summary>Provides an HTTP-specific implementation of the <see cref="T:System.Net.WebResponse" /> class.</summary>
// Token: 0x02000297 RID: 663
[Token(Token = "0x2000297")]
[Serializable]
public class HttpWebResponse : WebResponse, ISerializable, IDisposable
{
// Token: 0x0600112E RID: 4398 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600112E")]
[Address(RVA = "0x2715630", Offset = "0x2714430", VA = "0x182715630")]
internal HttpWebResponse(Uri uri, string method, WebConnectionData data, CookieContainer container)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.HttpWebResponse" /> class from the specified <see cref="T:System.Runtime.Serialization.SerializationInfo" /> and <see cref="T:System.Runtime.Serialization.StreamingContext" /> instances.</summary>
/// <param name="serializationInfo">A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that contains the information required to serialize the new <see cref="T:System.Net.HttpWebRequest" />.</param>
/// <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains the source of the serialized stream that is associated with the new <see cref="T:System.Net.HttpWebRequest" />.</param>
// Token: 0x0600112F RID: 4399 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600112F")]
[Address(RVA = "0x27153C0", Offset = "0x27141C0", VA = "0x1827153C0")]
[Obsolete]
protected HttpWebResponse(SerializationInfo serializationInfo, StreamingContext streamingContext)
{
}
/// <summary>Gets the headers that are associated with this response from the server.</summary>
/// <returns>A <see cref="T:System.Net.WebHeaderCollection" /> that contains the header information returned with the response.</returns>
/// <exception cref="T:System.ObjectDisposedException">The current instance has been disposed.</exception>
// Token: 0x1700036B RID: 875
// (get) Token: 0x06001130 RID: 4400 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700036B")]
public override WebHeaderCollection Headers
{
[Token(Token = "0x6001130")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "13")]
get
{
return null;
}
}
/// <summary>Gets the URI of the Internet resource that responded to the request.</summary>
/// <returns>The URI of the Internet resource that responded to the request.</returns>
/// <exception cref="T:System.ObjectDisposedException">The current instance has been disposed.</exception>
// Token: 0x1700036C RID: 876
// (get) Token: 0x06001131 RID: 4401 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700036C")]
public override Uri ResponseUri
{
[Token(Token = "0x6001131")]
[Address(RVA = "0x2715870", Offset = "0x2714670", VA = "0x182715870", Slot = "12")]
get
{
return null;
}
}
/// <summary>Gets the status of the response.</summary>
/// <returns>One of the <see cref="T:System.Net.HttpStatusCode" /> values.</returns>
/// <exception cref="T:System.ObjectDisposedException">The current instance has been disposed.</exception>
// Token: 0x1700036D RID: 877
// (get) Token: 0x06001132 RID: 4402 RVA: 0x00008088 File Offset: 0x00006288
[Token(Token = "0x1700036D")]
public virtual HttpStatusCode StatusCode
{
[Token(Token = "0x6001132")]
[Address(RVA = "0x3F63F0", Offset = "0x3F51F0", VA = "0x1803F63F0", Slot = "14")]
get
{
return (HttpStatusCode)0;
}
}
/// <summary>Gets the status description returned with the response.</summary>
/// <returns>A string that describes the status of the response.</returns>
/// <exception cref="T:System.ObjectDisposedException">The current instance has been disposed.</exception>
// Token: 0x1700036E RID: 878
// (get) Token: 0x06001133 RID: 4403 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700036E")]
public virtual string StatusDescription
{
[Token(Token = "0x6001133")]
[Address(RVA = "0x2715890", Offset = "0x2714690", VA = "0x182715890", Slot = "15")]
get
{
return null;
}
}
// Token: 0x06001134 RID: 4404 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001134")]
[Address(RVA = "0x27152F0", Offset = "0x27140F0", VA = "0x1827152F0")]
internal void ReadAll()
{
}
/// <summary>Gets the stream that is used to read the body of the response from the server.</summary>
/// <returns>A <see cref="T:System.IO.Stream" /> containing the body of the response.</returns>
/// <exception cref="T:System.Net.ProtocolViolationException">There is no response stream.</exception>
/// <exception cref="T:System.ObjectDisposedException">The current instance has been disposed.</exception>
// Token: 0x06001135 RID: 4405 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001135")]
[Address(RVA = "0x2715250", Offset = "0x2714050", VA = "0x182715250", Slot = "11")]
public override Stream GetResponseStream()
{
return null;
}
/// <summary>Serializes this instance into the specified <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object.</summary>
/// <param name="serializationInfo">The object into which this <see cref="T:System.Net.HttpWebResponse" /> will be serialized.</param>
/// <param name="streamingContext">The destination of the serialization.</param>
// Token: 0x06001136 RID: 4406 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001136")]
[Address(RVA = "0x408310", Offset = "0x407110", VA = "0x180408310", Slot = "6")]
void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
{
}
/// <summary>Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with the data needed to serialize the target object.</summary>
/// <param name="serializationInfo">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> to populate with data.</param>
/// <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> that specifies the destination for this serialization.</param>
// Token: 0x06001137 RID: 4407 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001137")]
[Address(RVA = "0x2715140", Offset = "0x2713F40", VA = "0x182715140", Slot = "8")]
protected override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
{
}
/// <summary>Closes the response stream.</summary>
/// <exception cref="T:System.ObjectDisposedException">.NET Core only: This <see cref="T:System.Net.HttpWebResponse" /> object has been disposed.</exception>
// Token: 0x06001138 RID: 4408 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001138")]
[Address(RVA = "0x2714F90", Offset = "0x2713D90", VA = "0x182714F90", Slot = "9")]
public override void Close()
{
}
// Token: 0x06001139 RID: 4409 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001139")]
[Address(RVA = "0x198C3C0", Offset = "0x198B1C0", VA = "0x18198C3C0", Slot = "7")]
void IDisposable.Dispose()
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.HttpWebResponse" />, and optionally disposes of the managed resources.</summary>
/// <param name="disposing">
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to releases only unmanaged resources.</param>
// Token: 0x0600113A RID: 4410 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600113A")]
[Address(RVA = "0x2714FC0", Offset = "0x2713DC0", VA = "0x182714FC0", Slot = "10")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x0600113B RID: 4411 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600113B")]
[Address(RVA = "0x2714F00", Offset = "0x2713D00", VA = "0x182714F00")]
private void CheckDisposed()
{
}
// Token: 0x0600113C RID: 4412 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600113C")]
[Address(RVA = "0x2714FD0", Offset = "0x2713DD0", VA = "0x182714FD0")]
private void FillCookies()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.HttpWebResponse" /> class.</summary>
// Token: 0x0600113D RID: 4413 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600113D")]
[Address(RVA = "0x2715390", Offset = "0x2714190", VA = "0x182715390")]
[Obsolete]
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public HttpWebResponse()
{
}
// Token: 0x04000A11 RID: 2577
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000A11")]
private Uri uri;
// Token: 0x04000A12 RID: 2578
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000A12")]
private WebHeaderCollection webHeaders;
// Token: 0x04000A13 RID: 2579
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000A13")]
private CookieCollection cookieCollection;
// Token: 0x04000A14 RID: 2580
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000A14")]
private string method;
// Token: 0x04000A15 RID: 2581
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000A15")]
private Version version;
// Token: 0x04000A16 RID: 2582
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4000A16")]
private HttpStatusCode statusCode;
// Token: 0x04000A17 RID: 2583
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4000A17")]
private string statusDescription;
// Token: 0x04000A18 RID: 2584
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x4000A18")]
private long contentLength;
// Token: 0x04000A19 RID: 2585
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x4000A19")]
private string contentType;
// Token: 0x04000A1A RID: 2586
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x4000A1A")]
private CookieContainer cookie_container;
// Token: 0x04000A1B RID: 2587
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x4000A1B")]
private bool disposed;
// Token: 0x04000A1C RID: 2588
[FieldOffset(Offset = "0x70")]
[Token(Token = "0x4000A1C")]
private Stream stream;
}
}