437 lines
18 KiB
C#
437 lines
18 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Specialized;
|
|
using System.Reflection;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Net
|
|
{
|
|
/// <summary>Contains protocol headers associated with a request or response.</summary>
|
|
// Token: 0x0200023A RID: 570
|
|
[Token(Token = "0x200023A")]
|
|
[DefaultMember("Item")]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public class WebHeaderCollection : NameValueCollection, ISerializable
|
|
{
|
|
// Token: 0x06000E3D RID: 3645 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E3D")]
|
|
[Address(RVA = "0x776FA0", Offset = "0x775FA0", VA = "0x180776FA0")]
|
|
private void NormalizeCommonHeaders()
|
|
{
|
|
}
|
|
|
|
// Token: 0x170002A4 RID: 676
|
|
// (get) Token: 0x06000E3E RID: 3646 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170002A4")]
|
|
private NameValueCollection InnerCollection
|
|
{
|
|
[Token(Token = "0x6000E3E")]
|
|
[Address(RVA = "0x778550", Offset = "0x777550", VA = "0x180778550")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000E3F RID: 3647 RVA: 0x00007230 File Offset: 0x00005430
|
|
[Token(Token = "0x6000E3F")]
|
|
[Address(RVA = "0x775E20", Offset = "0x774E20", VA = "0x180775E20")]
|
|
internal static bool AllowMultiValues(string name)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x170002A5 RID: 677
|
|
// (get) Token: 0x06000E40 RID: 3648 RVA: 0x00007248 File Offset: 0x00005448
|
|
[Token(Token = "0x170002A5")]
|
|
private bool AllowHttpRequestHeader
|
|
{
|
|
[Token(Token = "0x6000E40")]
|
|
[Address(RVA = "0x7784E0", Offset = "0x7774E0", VA = "0x1807784E0")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
/// <summary>Removes the specified header from the collection.</summary>
|
|
/// <param name="header">The <see cref="T:System.Net.HttpRequestHeader" /> instance to remove from the collection.</param>
|
|
/// <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.WebHeaderCollection" /> instance does not allow instances of <see cref="T:System.Net.HttpRequestHeader" />.</exception>
|
|
// Token: 0x06000E41 RID: 3649 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E41")]
|
|
[Address(RVA = "0x777160", Offset = "0x776160", VA = "0x180777160")]
|
|
public void Remove(HttpRequestHeader header)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000E42 RID: 3650 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E42")]
|
|
[Address(RVA = "0x775990", Offset = "0x774990", VA = "0x180775990")]
|
|
internal void AddInternal(string name, string value)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000E43 RID: 3651 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E43")]
|
|
[Address(RVA = "0x775EC0", Offset = "0x774EC0", VA = "0x180775EC0")]
|
|
internal void ChangeInternal(string name, string value)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000E44 RID: 3652 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E44")]
|
|
[Address(RVA = "0x777100", Offset = "0x776100", VA = "0x180777100")]
|
|
internal void RemoveInternal(string name)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000E45 RID: 3653 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E45")]
|
|
[Address(RVA = "0x7763B0", Offset = "0x7753B0", VA = "0x1807763B0")]
|
|
internal void CheckUpdate(string name, string value)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000E46 RID: 3654 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000E46")]
|
|
[Address(RVA = "0x775F30", Offset = "0x774F30", VA = "0x180775F30")]
|
|
internal static string CheckBadChars(string name, bool isHeaderValue)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06000E47 RID: 3655 RVA: 0x00007260 File Offset: 0x00005460
|
|
[Token(Token = "0x6000E47")]
|
|
[Address(RVA = "0x776470", Offset = "0x775470", VA = "0x180776470")]
|
|
internal static bool ContainsNonAsciiChars(string token)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x06000E48 RID: 3656 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E48")]
|
|
[Address(RVA = "0x777770", Offset = "0x776770", VA = "0x180777770")]
|
|
internal void ThrowOnRestrictedHeader(string headerName)
|
|
{
|
|
}
|
|
|
|
/// <summary>Inserts a header with the specified name and value into the collection.</summary>
|
|
/// <param name="name">The header to add to the collection.</param>
|
|
/// <param name="value">The content of the header.</param>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="name" /> is <see langword="null" />, <see cref="F:System.String.Empty" />, or contains invalid characters.
|
|
/// -or-
|
|
/// <paramref name="name" /> is a restricted header that must be set with a property setting.
|
|
/// -or-
|
|
/// <paramref name="value" /> contains invalid characters.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="value" /> is greater than 65535.</exception>
|
|
// Token: 0x06000E49 RID: 3657 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E49")]
|
|
[Address(RVA = "0x775C90", Offset = "0x774C90", VA = "0x180775C90", Slot = "15")]
|
|
public override void Add(string name, string value)
|
|
{
|
|
}
|
|
|
|
/// <summary>Inserts the specified header into the collection.</summary>
|
|
/// <param name="header">The header to add, with the name and value separated by a colon.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="header" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="header" /> does not contain a colon (:) character.
|
|
/// The length of <paramref name="value" /> is greater than 65535.
|
|
/// -or-
|
|
/// The name part of <paramref name="header" /> is <see cref="F:System.String.Empty" /> or contains invalid characters.
|
|
/// -or-
|
|
/// <paramref name="header" /> is a restricted header that should be set with a property.
|
|
/// -or-
|
|
/// The value part of <paramref name="header" /> contains invalid characters.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">The length the string after the colon (:) is greater than 65535.</exception>
|
|
// Token: 0x06000E4A RID: 3658 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E4A")]
|
|
[Address(RVA = "0x775A00", Offset = "0x774A00", VA = "0x180775A00")]
|
|
public void Add(string header)
|
|
{
|
|
}
|
|
|
|
/// <summary>Sets the specified header to the specified value.</summary>
|
|
/// <param name="name">The header to set.</param>
|
|
/// <param name="value">The content of the header to set.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="value" /> is greater than 65535.</exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="name" /> is a restricted header.
|
|
/// -or-
|
|
/// <paramref name="name" /> or <paramref name="value" /> contain invalid characters.</exception>
|
|
// Token: 0x06000E4B RID: 3659 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E4B")]
|
|
[Address(RVA = "0x777540", Offset = "0x776540", VA = "0x180777540", Slot = "18")]
|
|
public override void Set(string name, string value)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000E4C RID: 3660 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E4C")]
|
|
[Address(RVA = "0x777350", Offset = "0x776350", VA = "0x180777350")]
|
|
internal void SetInternal(string name, string value)
|
|
{
|
|
}
|
|
|
|
/// <summary>Removes the specified header from the collection.</summary>
|
|
/// <param name="name">The name of the header to remove from the collection.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="name" /> is <see langword="null" /><see cref="F:System.String.Empty" />.</exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="name" /> is a restricted header.
|
|
/// -or-
|
|
/// <paramref name="name" /> contains invalid characters.</exception>
|
|
// Token: 0x06000E4D RID: 3661 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E4D")]
|
|
[Address(RVA = "0x777240", Offset = "0x776240", VA = "0x180777240", Slot = "19")]
|
|
public override void Remove(string name)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets an array of header values stored in a header.</summary>
|
|
/// <param name="header">The header to return.</param>
|
|
/// <returns>An array of header strings.</returns>
|
|
// Token: 0x06000E4E RID: 3662 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000E4E")]
|
|
[Address(RVA = "0x776960", Offset = "0x775960", VA = "0x180776960", Slot = "17")]
|
|
public override string[] GetValues(string header)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>This method is obsolete.</summary>
|
|
/// <returns>The <see cref="T:System.String" /> representation of the collection.</returns>
|
|
// Token: 0x06000E4F RID: 3663 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000E4F")]
|
|
[Address(RVA = "0x777970", Offset = "0x776970", VA = "0x180777970", Slot = "3")]
|
|
public override string ToString()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06000E50 RID: 3664 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000E50")]
|
|
[Address(RVA = "0x7764E0", Offset = "0x7754E0", VA = "0x1807764E0")]
|
|
internal static string GetAsString(NameValueCollection cc, bool winInetCompat, bool forTrace)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Net.WebHeaderCollection" /> class.</summary>
|
|
// Token: 0x06000E51 RID: 3665 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E51")]
|
|
[Address(RVA = "0x778430", Offset = "0x777430", VA = "0x180778430")]
|
|
public WebHeaderCollection()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000E52 RID: 3666 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E52")]
|
|
[Address(RVA = "0x778360", Offset = "0x777360", VA = "0x180778360")]
|
|
internal WebHeaderCollection(WebHeaderCollectionType type)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Net.WebHeaderCollection" /> class from the specified instances of the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> and <see cref="T:System.Runtime.Serialization.StreamingContext" /> classes.</summary>
|
|
/// <param name="serializationInfo">A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> containing the information required to serialize the <see cref="T:System.Net.WebHeaderCollection" />.</param>
|
|
/// <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> containing the source of the serialized stream associated with the new <see cref="T:System.Net.WebHeaderCollection" />.</param>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="headerName" /> contains invalid characters.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="headerName" /> is a null reference or <see cref="F:System.String.Empty" />.</exception>
|
|
// Token: 0x06000E53 RID: 3667 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E53")]
|
|
[Address(RVA = "0x7781B0", Offset = "0x7771B0", VA = "0x1807781B0")]
|
|
protected WebHeaderCollection(SerializationInfo serializationInfo, StreamingContext streamingContext)
|
|
{
|
|
}
|
|
|
|
/// <summary>Implements the <see cref="T:System.Runtime.Serialization.ISerializable" /> interface and raises the deserialization event when the deserialization is complete.</summary>
|
|
/// <param name="sender">The source of the deserialization event.</param>
|
|
// Token: 0x06000E54 RID: 3668 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E54")]
|
|
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "12")]
|
|
public override void OnDeserialization(object sender)
|
|
{
|
|
}
|
|
|
|
/// <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: 0x06000E55 RID: 3669 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E55")]
|
|
[Address(RVA = "0x7767F0", Offset = "0x7757F0", VA = "0x1807767F0", Slot = "11")]
|
|
public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
|
|
{
|
|
}
|
|
|
|
/// <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.WebHeaderCollection" /> will be serialized.</param>
|
|
/// <param name="streamingContext">The destination of the serialization.</param>
|
|
// Token: 0x06000E56 RID: 3670 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E56")]
|
|
[Address(RVA = "0x777740", Offset = "0x776740", VA = "0x180777740", Slot = "9")]
|
|
void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the value of a particular header in the collection, specified by the name of the header.</summary>
|
|
/// <param name="name">The name of the Web header.</param>
|
|
/// <returns>A <see cref="T:System.String" /> holding the value of the specified header.</returns>
|
|
// Token: 0x06000E57 RID: 3671 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000E57")]
|
|
[Address(RVA = "0x776BD0", Offset = "0x775BD0", VA = "0x180776BD0", Slot = "16")]
|
|
public override string Get(string name)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns an enumerator that can iterate through the <see cref="T:System.Net.WebHeaderCollection" /> instance.</summary>
|
|
/// <returns>An <see cref="T:System.Collections.IEnumerator" /> for the <see cref="T:System.Net.WebHeaderCollection" />.</returns>
|
|
// Token: 0x06000E58 RID: 3672 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000E58")]
|
|
[Address(RVA = "0x776730", Offset = "0x775730", VA = "0x180776730", Slot = "13")]
|
|
public override IEnumerator GetEnumerator()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets the number of headers in the collection.</summary>
|
|
/// <returns>An <see cref="T:System.Int32" /> indicating the number of headers in a request.</returns>
|
|
// Token: 0x170002A6 RID: 678
|
|
// (get) Token: 0x06000E59 RID: 3673 RVA: 0x00007278 File Offset: 0x00005478
|
|
[Token(Token = "0x170002A6")]
|
|
public override int Count
|
|
{
|
|
[Token(Token = "0x6000E59")]
|
|
[Address(RVA = "0x778510", Offset = "0x777510", VA = "0x180778510", Slot = "14")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the value of a particular header in the collection, specified by an index into the collection.</summary>
|
|
/// <param name="index">The zero-based index of the key to get from the collection.</param>
|
|
/// <returns>A <see cref="T:System.String" /> containing the value of the specified header.</returns>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="index" /> is negative.
|
|
/// -or-
|
|
/// <paramref name="index" /> exceeds the size of the collection.</exception>
|
|
// Token: 0x06000E5A RID: 3674 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000E5A")]
|
|
[Address(RVA = "0x776B80", Offset = "0x775B80", VA = "0x180776B80", Slot = "20")]
|
|
public override string Get(int index)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets the header name at the specified position in the collection.</summary>
|
|
/// <param name="index">The zero-based index of the key to get from the collection.</param>
|
|
/// <returns>A <see cref="T:System.String" /> holding the header name.</returns>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="index" /> is negative.
|
|
/// -or-
|
|
/// <paramref name="index" /> exceeds the size of the collection.</exception>
|
|
// Token: 0x06000E5B RID: 3675 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000E5B")]
|
|
[Address(RVA = "0x7767A0", Offset = "0x7757A0", VA = "0x1807767A0", Slot = "21")]
|
|
public override string GetKey(int index)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets all header names (keys) in the collection.</summary>
|
|
/// <returns>An array of type <see cref="T:System.String" /> containing all header names in a Web request.</returns>
|
|
// Token: 0x170002A7 RID: 679
|
|
// (get) Token: 0x06000E5C RID: 3676 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170002A7")]
|
|
public override string[] AllKeys
|
|
{
|
|
[Token(Token = "0x6000E5C")]
|
|
[Address(RVA = "0x7784A0", Offset = "0x7774A0", VA = "0x1807784A0", Slot = "22")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0400085E RID: 2142
|
|
[Token(Token = "0x400085E")]
|
|
private static readonly HeaderInfoTable HInfo;
|
|
|
|
// Token: 0x0400085F RID: 2143
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x400085F")]
|
|
private string[] m_CommonHeaders;
|
|
|
|
// Token: 0x04000860 RID: 2144
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x4000860")]
|
|
private int m_NumCommonHeaders;
|
|
|
|
// Token: 0x04000861 RID: 2145
|
|
[Token(Token = "0x4000861")]
|
|
private static readonly string[] s_CommonHeaderNames;
|
|
|
|
// Token: 0x04000862 RID: 2146
|
|
[Token(Token = "0x4000862")]
|
|
private static readonly sbyte[] s_CommonHeaderHints;
|
|
|
|
// Token: 0x04000863 RID: 2147
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x4000863")]
|
|
private NameValueCollection m_InnerCollection;
|
|
|
|
// Token: 0x04000864 RID: 2148
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x4000864")]
|
|
private WebHeaderCollectionType m_Type;
|
|
|
|
// Token: 0x04000865 RID: 2149
|
|
[Token(Token = "0x4000865")]
|
|
private static readonly char[] HttpTrimCharacters;
|
|
|
|
// Token: 0x04000866 RID: 2150
|
|
[Token(Token = "0x4000866")]
|
|
private static WebHeaderCollection.RfcChar[] RfcCharMap;
|
|
|
|
// Token: 0x0200023B RID: 571
|
|
[Token(Token = "0x200023B")]
|
|
private enum RfcChar : byte
|
|
{
|
|
// Token: 0x04000868 RID: 2152
|
|
[Token(Token = "0x4000868")]
|
|
High,
|
|
// Token: 0x04000869 RID: 2153
|
|
[Token(Token = "0x4000869")]
|
|
Reg,
|
|
// Token: 0x0400086A RID: 2154
|
|
[Token(Token = "0x400086A")]
|
|
Ctl,
|
|
// Token: 0x0400086B RID: 2155
|
|
[Token(Token = "0x400086B")]
|
|
CR,
|
|
// Token: 0x0400086C RID: 2156
|
|
[Token(Token = "0x400086C")]
|
|
LF,
|
|
// Token: 0x0400086D RID: 2157
|
|
[Token(Token = "0x400086D")]
|
|
WS,
|
|
// Token: 0x0400086E RID: 2158
|
|
[Token(Token = "0x400086E")]
|
|
Colon,
|
|
// Token: 0x0400086F RID: 2159
|
|
[Token(Token = "0x400086F")]
|
|
Delim
|
|
}
|
|
}
|
|
}
|