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