Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
HttpRequestHeaderExtensions.cs
Go to the documentation of this file.
1namespace System.Net;
2
3internal 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}
static string GetName(this HttpRequestHeader header)