namespace EmbedIO { /// /// Exposes known HTTP header names. /// /// /// The constants in this class have been extracted from a list of known HTTP header names. /// The presence of a header name in this class is not a guarantee that EmbedIO supports, /// or even recognizes, it. Refer to the documentation for each module for information about supported /// headers. /// public static class HttpHeaderNames { // The .NET Core sources were taken as reference for this list of constants. // See https://github.com/dotnet/corefx/blob/master/src/Common/src/System/Net/HttpKnownHeaderNames.cs // However, not all constants come from there, so be careful not to copy-paste indiscriminately. /// /// The Accept HTTP header. /// public const string Accept = "Accept"; /// /// The Accept-Charset HTTP header. /// public const string AcceptCharset = "Accept-Charset"; /// /// The Accept-Encoding HTTP header. /// public const string AcceptEncoding = "Accept-Encoding"; /// /// The Accept-Language HTTP header. /// public const string AcceptLanguage = "Accept-Language"; /// /// The Accept-Patch HTTP header. /// public const string AcceptPatch = "Accept-Patch"; /// /// The Accept-Ranges HTTP header. /// public const string AcceptRanges = "Accept-Ranges"; /// /// The Access-Control-Allow-Credentials HTTP header. /// public const string AccessControlAllowCredentials = "Access-Control-Allow-Credentials"; /// /// The Access-Control-Allow-Headers HTTP header. /// public const string AccessControlAllowHeaders = "Access-Control-Allow-Headers"; /// /// The Access-Control-Allow-Methods HTTP header. /// public const string AccessControlAllowMethods = "Access-Control-Allow-Methods"; /// /// The Access-Control-Allow-Origin HTTP header. /// public const string AccessControlAllowOrigin = "Access-Control-Allow-Origin"; /// /// The Access-Control-Expose-Headers HTTP header. /// public const string AccessControlExposeHeaders = "Access-Control-Expose-Headers"; /// /// The Access-Control-Max-Age HTTP header. /// public const string AccessControlMaxAge = "Access-Control-Max-Age"; /// /// The Access-Control-Request-Headers HTTP header. /// public const string AccessControlRequestHeaders = "Access-Control-Request-Headers"; /// /// The Access-Control-Request-Method HTTP header. /// public const string AccessControlRequestMethod = "Access-Control-Request-Method"; /// /// The Age HTTP header. /// public const string Age = "Age"; /// /// The Allow HTTP header. /// public const string Allow = "Allow"; /// /// The Alt-Svc HTTP header. /// public const string AltSvc = "Alt-Svc"; /// /// The Authorization HTTP header. /// public const string Authorization = "Authorization"; /// /// The Cache-Control HTTP header. /// public const string CacheControl = "Cache-Control"; /// /// The Connection HTTP header. /// public const string Connection = "Connection"; /// /// The Content-Disposition HTTP header. /// public const string ContentDisposition = "Content-Disposition"; /// /// The Content-Encoding HTTP header. /// public const string ContentEncoding = "Content-Encoding"; /// /// The Content-Language HTTP header. /// public const string ContentLanguage = "Content-Language"; /// /// The Content-Length HTTP header. /// public const string ContentLength = "Content-Length"; /// /// The Content-Location HTTP header. /// public const string ContentLocation = "Content-Location"; /// /// The Content-MD5 HTTP header. /// public const string ContentMD5 = "Content-MD5"; /// /// The Content-Range HTTP header. /// public const string ContentRange = "Content-Range"; /// /// The Content-Security-Policy HTTP header. /// public const string ContentSecurityPolicy = "Content-Security-Policy"; /// /// The Content-Type HTTP header. /// public const string ContentType = "Content-Type"; /// /// The Cookie HTTP header. /// public const string Cookie = "Cookie"; /// /// The Cookie2 HTTP header. /// public const string Cookie2 = "Cookie2"; /// /// The Date HTTP header. /// public const string Date = "Date"; /// /// The ETag HTTP header. /// public const string ETag = "ETag"; /// /// The Expect HTTP header. /// public const string Expect = "Expect"; /// /// The Expires HTTP header. /// public const string Expires = "Expires"; /// /// The From HTTP header. /// public const string From = "From"; /// /// The Host HTTP header. /// public const string Host = "Host"; /// /// The If-Match HTTP header. /// public const string IfMatch = "If-Match"; /// /// The If-Modified-Since HTTP header. /// public const string IfModifiedSince = "If-Modified-Since"; /// /// The If-None-Match HTTP header. /// public const string IfNoneMatch = "If-None-Match"; /// /// The If-Range HTTP header. /// public const string IfRange = "If-Range"; /// /// The If-Unmodified-Since HTTP header. /// public const string IfUnmodifiedSince = "If-Unmodified-Since"; /// /// The Keep-Alive HTTP header. /// public const string KeepAlive = "Keep-Alive"; /// /// The Last-Modified HTTP header. /// public const string LastModified = "Last-Modified"; /// /// The Link HTTP header. /// public const string Link = "Link"; /// /// The Location HTTP header. /// public const string Location = "Location"; /// /// The Max-Forwards HTTP header. /// public const string MaxForwards = "Max-Forwards"; /// /// The Origin HTTP header. /// public const string Origin = "Origin"; /// /// The P3P HTTP header. /// public const string P3P = "P3P"; /// /// The Pragma HTTP header. /// public const string Pragma = "Pragma"; /// /// The Proxy-Authenticate HTTP header. /// public const string ProxyAuthenticate = "Proxy-Authenticate"; /// /// The Proxy-Authorization HTTP header. /// public const string ProxyAuthorization = "Proxy-Authorization"; /// /// The Proxy-Connection HTTP header. /// public const string ProxyConnection = "Proxy-Connection"; /// /// The Public-Key-Pins HTTP header. /// public const string PublicKeyPins = "Public-Key-Pins"; /// /// The Range HTTP header. /// public const string Range = "Range"; /// /// The Referer HTTP header. /// /// /// The incorrect spelling ("Referer" instead of "Referrer") is intentional /// and has historical reasons. /// See the "Etymology" section of the Wikipedia article /// on this header for more information. /// public const string Referer = "Referer"; /// /// The Retry-After HTTP header. /// public const string RetryAfter = "Retry-After"; /// /// The Sec-WebSocket-Accept HTTP header. /// public const string SecWebSocketAccept = "Sec-WebSocket-Accept"; /// /// The Sec-WebSocket-Extensions HTTP header. /// public const string SecWebSocketExtensions = "Sec-WebSocket-Extensions"; /// /// The Sec-WebSocket-Key HTTP header. /// public const string SecWebSocketKey = "Sec-WebSocket-Key"; /// /// The Sec-WebSocket-Protocol HTTP header. /// public const string SecWebSocketProtocol = "Sec-WebSocket-Protocol"; /// /// The Sec-WebSocket-Version HTTP header. /// public const string SecWebSocketVersion = "Sec-WebSocket-Version"; /// /// The Server HTTP header. /// public const string Server = "Server"; /// /// The Set-Cookie HTTP header. /// public const string SetCookie = "Set-Cookie"; /// /// The Set-Cookie2 HTTP header. /// public const string SetCookie2 = "Set-Cookie2"; /// /// The Strict-Transport-Security HTTP header. /// public const string StrictTransportSecurity = "Strict-Transport-Security"; /// /// The TE HTTP header. /// public const string TE = "TE"; /// /// The TSV HTTP header. /// public const string TSV = "TSV"; /// /// The Trailer HTTP header. /// public const string Trailer = "Trailer"; /// /// The Transfer-Encoding HTTP header. /// public const string TransferEncoding = "Transfer-Encoding"; /// /// The Upgrade HTTP header. /// public const string Upgrade = "Upgrade"; /// /// The Upgrade-Insecure-Requests HTTP header. /// public const string UpgradeInsecureRequests = "Upgrade-Insecure-Requests"; /// /// The User-Agent HTTP header. /// public const string UserAgent = "User-Agent"; /// /// The Vary HTTP header. /// public const string Vary = "Vary"; /// /// The Via HTTP header. /// public const string Via = "Via"; /// /// The WWW-Authenticate HTTP header. /// public const string WWWAuthenticate = "WWW-Authenticate"; /// /// The Warning HTTP header. /// public const string Warning = "Warning"; /// /// The X-AspNet-Version HTTP header. /// public const string XAspNetVersion = "X-AspNet-Version"; /// /// The X-Content-Duration HTTP header. /// public const string XContentDuration = "X-Content-Duration"; /// /// The X-Content-Type-Options HTTP header. /// public const string XContentTypeOptions = "X-Content-Type-Options"; /// /// The X-Frame-Options HTTP header. /// public const string XFrameOptions = "X-Frame-Options"; /// /// The X-MSEdge-Ref HTTP header. /// public const string XMSEdgeRef = "X-MSEdge-Ref"; /// /// The X-Powered-By HTTP header. /// public const string XPoweredBy = "X-Powered-By"; /// /// The X-Request-ID HTTP header. /// public const string XRequestID = "X-Request-ID"; /// /// The X-UA-Compatible HTTP header. /// public const string XUACompatible = "X-UA-Compatible"; } }