Files
2026-04-10 22:50:51 +02:00

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: 0x0200023E RID: 574
[Token(Token = "0x200023E")]
[ComVisible(true)]
[DefaultMember("Item")]
[Serializable]
public class WebHeaderCollection : NameValueCollection, ISerializable
{
// Token: 0x06000E53 RID: 3667 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000E53")]
[Address(RVA = "0x405860", Offset = "0x404660", VA = "0x180405860")]
private void NormalizeCommonHeaders()
{
}
// Token: 0x170002A8 RID: 680
// (get) Token: 0x06000E54 RID: 3668 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002A8")]
private NameValueCollection InnerCollection
{
[Token(Token = "0x6000E54")]
[Address(RVA = "0x406E10", Offset = "0x405C10", VA = "0x180406E10")]
get
{
return null;
}
}
// Token: 0x06000E55 RID: 3669 RVA: 0x00007248 File Offset: 0x00005448
[Token(Token = "0x6000E55")]
[Address(RVA = "0x4046E0", Offset = "0x4034E0", VA = "0x1804046E0")]
internal static bool AllowMultiValues(string name)
{
return default(bool);
}
// Token: 0x170002A9 RID: 681
// (get) Token: 0x06000E56 RID: 3670 RVA: 0x00007260 File Offset: 0x00005460
[Token(Token = "0x170002A9")]
private bool AllowHttpRequestHeader
{
[Token(Token = "0x6000E56")]
[Address(RVA = "0x406DA0", Offset = "0x405BA0", VA = "0x180406DA0")]
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: 0x06000E57 RID: 3671 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000E57")]
[Address(RVA = "0x405A20", Offset = "0x404820", VA = "0x180405A20")]
public void Remove(HttpRequestHeader header)
{
}
// Token: 0x06000E58 RID: 3672 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000E58")]
[Address(RVA = "0x404250", Offset = "0x403050", VA = "0x180404250")]
internal void AddInternal(string name, string value)
{
}
// Token: 0x06000E59 RID: 3673 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000E59")]
[Address(RVA = "0x404780", Offset = "0x403580", VA = "0x180404780")]
internal void ChangeInternal(string name, string value)
{
}
// Token: 0x06000E5A RID: 3674 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000E5A")]
[Address(RVA = "0x4059C0", Offset = "0x4047C0", VA = "0x1804059C0")]
internal void RemoveInternal(string name)
{
}
// Token: 0x06000E5B RID: 3675 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000E5B")]
[Address(RVA = "0x404C70", Offset = "0x403A70", VA = "0x180404C70")]
internal void CheckUpdate(string name, string value)
{
}
// Token: 0x06000E5C RID: 3676 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000E5C")]
[Address(RVA = "0x4047F0", Offset = "0x4035F0", VA = "0x1804047F0")]
internal static string CheckBadChars(string name, bool isHeaderValue)
{
return null;
}
// Token: 0x06000E5D RID: 3677 RVA: 0x00007278 File Offset: 0x00005478
[Token(Token = "0x6000E5D")]
[Address(RVA = "0x404D30", Offset = "0x403B30", VA = "0x180404D30")]
internal static bool ContainsNonAsciiChars(string token)
{
return default(bool);
}
// Token: 0x06000E5E RID: 3678 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000E5E")]
[Address(RVA = "0x406030", Offset = "0x404E30", VA = "0x180406030")]
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: 0x06000E5F RID: 3679 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000E5F")]
[Address(RVA = "0x404550", Offset = "0x403350", VA = "0x180404550", 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: 0x06000E60 RID: 3680 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000E60")]
[Address(RVA = "0x4042C0", Offset = "0x4030C0", VA = "0x1804042C0")]
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: 0x06000E61 RID: 3681 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000E61")]
[Address(RVA = "0x405E00", Offset = "0x404C00", VA = "0x180405E00", Slot = "18")]
public override void Set(string name, string value)
{
}
// Token: 0x06000E62 RID: 3682 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000E62")]
[Address(RVA = "0x405C10", Offset = "0x404A10", VA = "0x180405C10")]
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: 0x06000E63 RID: 3683 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000E63")]
[Address(RVA = "0x405B00", Offset = "0x404900", VA = "0x180405B00", 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: 0x06000E64 RID: 3684 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000E64")]
[Address(RVA = "0x405220", Offset = "0x404020", VA = "0x180405220", 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: 0x06000E65 RID: 3685 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000E65")]
[Address(RVA = "0x406230", Offset = "0x405030", VA = "0x180406230", Slot = "3")]
public override string ToString()
{
return null;
}
// Token: 0x06000E66 RID: 3686 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000E66")]
[Address(RVA = "0x404DA0", Offset = "0x403BA0", VA = "0x180404DA0")]
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: 0x06000E67 RID: 3687 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000E67")]
[Address(RVA = "0x406CF0", Offset = "0x405AF0", VA = "0x180406CF0")]
public WebHeaderCollection()
{
}
// Token: 0x06000E68 RID: 3688 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000E68")]
[Address(RVA = "0x406C20", Offset = "0x405A20", VA = "0x180406C20")]
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: 0x06000E69 RID: 3689 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000E69")]
[Address(RVA = "0x406A70", Offset = "0x405870", VA = "0x180406A70")]
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: 0x06000E6A RID: 3690 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000E6A")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", 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: 0x06000E6B RID: 3691 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000E6B")]
[Address(RVA = "0x4050B0", Offset = "0x403EB0", VA = "0x1804050B0", 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: 0x06000E6C RID: 3692 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000E6C")]
[Address(RVA = "0x406000", Offset = "0x404E00", VA = "0x180406000", 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: 0x06000E6D RID: 3693 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000E6D")]
[Address(RVA = "0x405490", Offset = "0x404290", VA = "0x180405490", 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: 0x06000E6E RID: 3694 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000E6E")]
[Address(RVA = "0x404FF0", Offset = "0x403DF0", VA = "0x180404FF0", 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: 0x170002AA RID: 682
// (get) Token: 0x06000E6F RID: 3695 RVA: 0x00007290 File Offset: 0x00005490
[Token(Token = "0x170002AA")]
public override int Count
{
[Token(Token = "0x6000E6F")]
[Address(RVA = "0x406DD0", Offset = "0x405BD0", VA = "0x180406DD0", 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: 0x06000E70 RID: 3696 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000E70")]
[Address(RVA = "0x405440", Offset = "0x404240", VA = "0x180405440", 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: 0x06000E71 RID: 3697 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000E71")]
[Address(RVA = "0x405060", Offset = "0x403E60", VA = "0x180405060", 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: 0x170002AB RID: 683
// (get) Token: 0x06000E72 RID: 3698 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002AB")]
public override string[] AllKeys
{
[Token(Token = "0x6000E72")]
[Address(RVA = "0x406D60", Offset = "0x405B60", VA = "0x180406D60", Slot = "22")]
get
{
return null;
}
}
// Token: 0x0400086B RID: 2155
[Token(Token = "0x400086B")]
private static readonly HeaderInfoTable HInfo;
// Token: 0x0400086C RID: 2156
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
[Token(Token = "0x400086C")]
private string[] m_CommonHeaders;
// Token: 0x0400086D RID: 2157
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
[Token(Token = "0x400086D")]
private int m_NumCommonHeaders;
// Token: 0x0400086E RID: 2158
[Token(Token = "0x400086E")]
private static readonly string[] s_CommonHeaderNames;
// Token: 0x0400086F RID: 2159
[Token(Token = "0x400086F")]
private static readonly sbyte[] s_CommonHeaderHints;
// Token: 0x04000870 RID: 2160
[global::Cpp2IlInjected.FieldOffset(Offset = "0x70")]
[Token(Token = "0x4000870")]
private NameValueCollection m_InnerCollection;
// Token: 0x04000871 RID: 2161
[global::Cpp2IlInjected.FieldOffset(Offset = "0x78")]
[Token(Token = "0x4000871")]
private WebHeaderCollectionType m_Type;
// Token: 0x04000872 RID: 2162
[Token(Token = "0x4000872")]
private static readonly char[] HttpTrimCharacters;
// Token: 0x04000873 RID: 2163
[Token(Token = "0x4000873")]
private static WebHeaderCollection.RfcChar[] RfcCharMap;
// Token: 0x0200023F RID: 575
[Token(Token = "0x200023F")]
private enum RfcChar : byte
{
// Token: 0x04000875 RID: 2165
[Token(Token = "0x4000875")]
High,
// Token: 0x04000876 RID: 2166
[Token(Token = "0x4000876")]
Reg,
// Token: 0x04000877 RID: 2167
[Token(Token = "0x4000877")]
Ctl,
// Token: 0x04000878 RID: 2168
[Token(Token = "0x4000878")]
CR,
// Token: 0x04000879 RID: 2169
[Token(Token = "0x4000879")]
LF,
// Token: 0x0400087A RID: 2170
[Token(Token = "0x400087A")]
WS,
// Token: 0x0400087B RID: 2171
[Token(Token = "0x400087B")]
Colon,
// Token: 0x0400087C RID: 2172
[Token(Token = "0x400087C")]
Delim
}
}
}