-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
System.Net.WebHeaderCollection.cs
121 lines (120 loc) · 4.9 KB
/
System.Net.WebHeaderCollection.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// ------------------------------------------------------------------------------
// Changes to this file must follow the https://aka.ms/api-review process.
// ------------------------------------------------------------------------------
namespace System.Net
{
public enum HttpRequestHeader
{
CacheControl = 0,
Connection = 1,
Date = 2,
KeepAlive = 3,
Pragma = 4,
Trailer = 5,
TransferEncoding = 6,
Upgrade = 7,
Via = 8,
Warning = 9,
Allow = 10,
ContentLength = 11,
ContentType = 12,
ContentEncoding = 13,
ContentLanguage = 14,
ContentLocation = 15,
ContentMd5 = 16,
ContentRange = 17,
Expires = 18,
LastModified = 19,
Accept = 20,
AcceptCharset = 21,
AcceptEncoding = 22,
AcceptLanguage = 23,
Authorization = 24,
Cookie = 25,
Expect = 26,
From = 27,
Host = 28,
IfMatch = 29,
IfModifiedSince = 30,
IfNoneMatch = 31,
IfRange = 32,
IfUnmodifiedSince = 33,
MaxForwards = 34,
ProxyAuthorization = 35,
Referer = 36,
Range = 37,
Te = 38,
Translate = 39,
UserAgent = 40,
}
public enum HttpResponseHeader
{
CacheControl = 0,
Connection = 1,
Date = 2,
KeepAlive = 3,
Pragma = 4,
Trailer = 5,
TransferEncoding = 6,
Upgrade = 7,
Via = 8,
Warning = 9,
Allow = 10,
ContentLength = 11,
ContentType = 12,
ContentEncoding = 13,
ContentLanguage = 14,
ContentLocation = 15,
ContentMd5 = 16,
ContentRange = 17,
Expires = 18,
LastModified = 19,
AcceptRanges = 20,
Age = 21,
ETag = 22,
Location = 23,
ProxyAuthenticate = 24,
RetryAfter = 25,
Server = 26,
SetCookie = 27,
Vary = 28,
WwwAuthenticate = 29,
}
public partial class WebHeaderCollection : System.Collections.Specialized.NameValueCollection, System.Collections.IEnumerable, System.Runtime.Serialization.ISerializable
{
public WebHeaderCollection() { }
protected WebHeaderCollection(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext) { }
public override string[] AllKeys { get { throw null; } }
public override int Count { get { throw null; } }
public string? this[System.Net.HttpRequestHeader header] { get { throw null; } set { } }
public string? this[System.Net.HttpResponseHeader header] { get { throw null; } set { } }
public override System.Collections.Specialized.NameObjectCollectionBase.KeysCollection Keys { get { throw null; } }
public void Add(System.Net.HttpRequestHeader header, string? value) { }
public void Add(System.Net.HttpResponseHeader header, string? value) { }
public void Add(string header) { }
public override void Add(string name, string? value) { }
protected void AddWithoutValidate(string headerName, string? headerValue) { }
public override void Clear() { }
public override string? Get(int index) { throw null; }
public override string? Get(string? name) { throw null; }
public override System.Collections.IEnumerator GetEnumerator() { throw null; }
public override string GetKey(int index) { throw null; }
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext) { }
public override string[]? GetValues(int index) { throw null; }
public override string[]? GetValues(string header) { throw null; }
public static bool IsRestricted(string headerName) { throw null; }
public static bool IsRestricted(string headerName, bool response) { throw null; }
public override void OnDeserialization(object? sender) { }
public void Remove(System.Net.HttpRequestHeader header) { }
public void Remove(System.Net.HttpResponseHeader header) { }
public override void Remove(string name) { }
public void Set(System.Net.HttpRequestHeader header, string? value) { }
public void Set(System.Net.HttpResponseHeader header, string? value) { }
public override void Set(string name, string? value) { }
void System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext) { }
public byte[] ToByteArray() { throw null; }
public override string ToString() { throw null; }
}
}