Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
HttpResponseHeaderExtensions.cs
Go to the documentation of this file.
1
namespace
System.Net
;
2
3
internal
static
class
HttpResponseHeaderExtensions
4
{
5
private
static
readonly
string
[]
s_names
=
new
string
[30]
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-Ranges"
,
"Age"
,
"ETag"
,
"Location"
,
"Proxy-Authenticate"
,
"Retry-After"
,
"Server"
,
"Set-Cookie"
,
"Vary"
,
"WWW-Authenticate"
10
};
11
12
public
static
string
GetName
(
this
HttpResponseHeader
header)
13
{
14
return
s_names
[(int)header];
15
}
16
}
System.Net.HttpResponseHeaderExtensions.GetName
static string GetName(this HttpResponseHeader header)
Definition
HttpResponseHeaderExtensions.cs:12
System.Net.HttpResponseHeaderExtensions.s_names
static readonly string[] s_names
Definition
HttpResponseHeaderExtensions.cs:5
System.Net.HttpResponseHeaderExtensions
Definition
HttpResponseHeaderExtensions.cs:4
System.Net.HttpResponseHeader
HttpResponseHeader
Definition
HttpResponseHeader.cs:4
System.Net
Definition
HttpClientJsonExtensions.cs:8
source
System.Net.WebHeaderCollection
System.Net
HttpResponseHeaderExtensions.cs
Generated by
1.10.0