Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
HttpRequestHeaderExtensions.cs
Go to the documentation of this file.
1
namespace
System.Net
;
2
3
internal
static
class
HttpRequestHeaderExtensions
4
{
5
private
static
readonly
string
[]
s_names
=
new
string
[41]
6
{
7
"Cache-Control"
,
"Connection"
,
"Date"
,
"Keep-Alive"
,
"Pragma"
,
"Trailer"
,
"Transfer-Encoding"
,
"Upgrade"
,
"Via"
,
"Warning"
,
8
"Allow"
,
"Content-Length"
,
"Content-Type"
,
"Content-Encoding"
,
"Content-Language"
,
"Content-Location"
,
"Content-MD5"
,
"Content-Range"
,
"Expires"
,
"Last-Modified"
,
9
"Accept"
,
"Accept-Charset"
,
"Accept-Encoding"
,
"Accept-Language"
,
"Authorization"
,
"Cookie"
,
"Expect"
,
"From"
,
"Host"
,
"If-Match"
,
10
"If-Modified-Since"
,
"If-None-Match"
,
"If-Range"
,
"If-Unmodified-Since"
,
"Max-Forwards"
,
"Proxy-Authorization"
,
"Referer"
,
"Range"
,
"Te"
,
"Translate"
,
11
"User-Agent"
12
};
13
14
public
static
string
GetName
(
this
HttpRequestHeader
header)
15
{
16
return
s_names
[(int)header];
17
}
18
}
System.Net.HttpRequestHeaderExtensions.s_names
static readonly string[] s_names
Definition
HttpRequestHeaderExtensions.cs:5
System.Net.HttpRequestHeaderExtensions.GetName
static string GetName(this HttpRequestHeader header)
Definition
HttpRequestHeaderExtensions.cs:14
System.Net.HttpRequestHeaderExtensions
Definition
HttpRequestHeaderExtensions.cs:4
System.Net.HttpRequestHeader
HttpRequestHeader
Definition
HttpRequestHeader.cs:4
System.Net
Definition
HttpClientJsonExtensions.cs:8
source
System.Net.WebHeaderCollection
System.Net
HttpRequestHeaderExtensions.cs
Generated by
1.10.0