Class HttpHeaderNames
- Namespace
- Cuemon.Net.Http
- Assembly
- Cuemon.Core.dll
Defines constants for well-known HTTP headers.
public static class HttpHeaderNames
- Inheritance
-
HttpHeaderNames
Remarks
This is primarily a statement to the (IMO) bad design decision that was made effective from .NET Core 3.0 and forward. Discussion: https://github.com/dotnet/aspnetcore/issues/9514
Fields
Accept
The Accept
request HTTP header name.
public const string Accept = "Accept"
Field Value
Remarks
AcceptCharset
The Accept-Charset
request HTTP header name.
public const string AcceptCharset = "Accept-Charset"
Field Value
Remarks
AcceptEncoding
The Accept-Encoding
request HTTP header name.
public const string AcceptEncoding = "Accept-Encoding"
Field Value
Remarks
AcceptLanguage
The Accept-Language
request HTTP header name.
public const string AcceptLanguage = "Accept-Language"
Field Value
Remarks
AcceptRanges
The Accept-Ranges
response HTTP header name.
public const string AcceptRanges = "Accept-Ranges"
Field Value
Remarks
AccessControlAllowCredentials
The Access-Control-Allow-Credentials
response HTTP header name.
public const string AccessControlAllowCredentials = "Access-Control-Allow-Credentials"
Field Value
Remarks
AccessControlAllowHeaders
The Access-Control-Allow-Headers
response HTTP header name.
public const string AccessControlAllowHeaders = "Access-Control-Allow-Headers"
Field Value
Remarks
AccessControlAllowMethods
The Access-Control-Allow-Methods
response HTTP header name.
public const string AccessControlAllowMethods = "Access-Control-Allow-Methods"
Field Value
Remarks
AccessControlAllowOrigin
The Access-Control-Allow-Origin
response HTTP header name.
public const string AccessControlAllowOrigin = "Access-Control-Allow-Origin"
Field Value
Remarks
AccessControlExposeHeaders
The Access-Control-Expose-Headers
response HTTP header name.
public const string AccessControlExposeHeaders = "Access-Control-Expose-Headers"
Field Value
Remarks
AccessControlMaxAge
The Access-Control-Max-Age
response HTTP header name.
public const string AccessControlMaxAge = "Access-Control-Max-Age"
Field Value
Remarks
AccessControlRequestHeaders
The Access-Control-Request-Headers
request HTTP header name.
public const string AccessControlRequestHeaders = "Access-Control-Request-Headers"
Field Value
Remarks
AccessControlRequestMethod
The Access-Control-Request-Method
request HTTP header name.
public const string AccessControlRequestMethod = "Access-Control-Request-Method"
Field Value
Remarks
Age
The Age
response HTTP header name.
public const string Age = "Age"
Field Value
Remarks
Allow
The Allow
response HTTP header name.
public const string Allow = "Allow"
Field Value
Remarks
Authorization
The Authorization
request HTTP header name.
public const string Authorization = "Authorization"
Field Value
Remarks
CacheControl
The Cache-Control
request HTTP header name.
public const string CacheControl = "Cache-Control"
Field Value
Remarks
Connection
The Connection
request HTTP header name.
public const string Connection = "Connection"
Field Value
Remarks
ContentDisposition
The Content-Disposition
response HTTP header name.
public const string ContentDisposition = "Content-Disposition"
Field Value
Remarks
ContentEncoding
The Content-Encoding
request HTTP header name.
public const string ContentEncoding = "Content-Encoding"
Field Value
Remarks
ContentLanguage
The Content-Language
response HTTP header name.
public const string ContentLanguage = "Content-Language"
Field Value
Remarks
ContentLength
The Content-Length
request HTTP header name.
public const string ContentLength = "Content-Length"
Field Value
Remarks
ContentLocation
The Content-Location
response HTTP header name.
public const string ContentLocation = "Content-Location"
Field Value
Remarks
ContentMD5
The Content-MD5
request HTTP header name.
public const string ContentMD5 = "Content-MD5"
Field Value
Remarks
ContentRange
The Content-Range
response HTTP header name.
public const string ContentRange = "Content-Range"
Field Value
Remarks
ContentSecurityPolicy
The Content-Security-Policy
response HTTP header name.
public const string ContentSecurityPolicy = "Content-Security-Policy"
Field Value
Remarks
ContentSecurityPolicyReportOnly
The Content-Security-Policy-Report-Only
response HTTP header name.
public const string ContentSecurityPolicyReportOnly = "Content-Security-Policy-Report-Only"
Field Value
Remarks
ContentType
The Content-Type
request HTTP header name.
public const string ContentType = "Content-Type"
Field Value
Remarks
Cookie
The Cookie
request HTTP header name.
public const string Cookie = "Cookie"
Field Value
Remarks
Date
The Date
request HTTP header name.
public const string Date = "Date"
Field Value
Remarks
ETag
The ETag
response HTTP header name.
public const string ETag = "ETag"
Field Value
Remarks
Expect
The Expect
request HTTP header name.
public const string Expect = "Expect"
Field Value
Remarks
Expires
The Expires
response HTTP header name.
public const string Expires = "Expires"
Field Value
Remarks
Forwarded
The Forwarded
request HTTP header name.
public const string Forwarded = "Forwarded"
Field Value
Remarks
From
The From
request HTTP header name.
public const string From = "From"
Field Value
Remarks
Host
The Host
request HTTP header name.
public const string Host = "Host"
Field Value
Remarks
Http2Settings
The HTTP2-Settings
request HTTP header name.
public const string Http2Settings = "HTTP2-Settings"
Field Value
Remarks
IfMatch
The If-Match
request HTTP header name.
public const string IfMatch = "If-Match"
Field Value
Remarks
IfModifiedSince
The If-Modified-Since
request HTTP header name.
public const string IfModifiedSince = "If-Modified-Since"
Field Value
Remarks
IfNoneMatch
The If-None-Match
request HTTP header name.
public const string IfNoneMatch = "If-None-Match"
Field Value
Remarks
IfRange
The If-Range
request HTTP header name.
public const string IfRange = "If-Range"
Field Value
Remarks
IfUnmodifiedSince
The If-Unmodified-Since
request HTTP header name.
public const string IfUnmodifiedSince = "If-Unmodified-Since"
Field Value
Remarks
LastModified
The Last-Modified
response HTTP header name.
public const string LastModified = "Last-Modified"
Field Value
Remarks
Location
The Location
response HTTP header name.
public const string Location = "Location"
Field Value
Remarks
MaxForwards
The Max-Forwards
request HTTP header name.
public const string MaxForwards = "Max-Forwards"
Field Value
Remarks
Origin
The Origin
request HTTP header name.
public const string Origin = "Origin"
Field Value
Remarks
Pragma
The Pragma
request HTTP header name.
public const string Pragma = "Pragma"
Field Value
Remarks
Prefer
The Prefer
request HTTP header name.
public const string Prefer = "Prefer"
Field Value
Remarks
ProxyAuthenticate
The Proxy-Authenticate
response HTTP header name.
public const string ProxyAuthenticate = "Proxy-Authenticate"
Field Value
Remarks
ProxyAuthorization
The Proxy-Authorization
request HTTP header name.
public const string ProxyAuthorization = "Proxy-Authorization"
Field Value
Remarks
Range
The Range
request HTTP header name.
public const string Range = "Range"
Field Value
Remarks
Referer
The Referer
request HTTP header name.
public const string Referer = "Referer"
Field Value
Remarks
RetryAfter
The Retry-After
response HTTP header name.
public const string RetryAfter = "Retry-After"
Field Value
Remarks
Server
The Server
response HTTP header name.
public const string Server = "Server"
Field Value
Remarks
ServerTiming
The Server-Timing
response HTTP header name.
public const string ServerTiming = "Server-Timing"
Field Value
Remarks
SetCookie
The Set-Cookie
response HTTP header name.
public const string SetCookie = "Set-Cookie"
Field Value
Remarks
StrictTransportSecurity
The Strict-Transport-Security
response HTTP header name.
public const string StrictTransportSecurity = "Strict-Transport-Security"
Field Value
Remarks
TE
The TE
request HTTP header name.
public const string TE = "TE"
Field Value
Remarks
Trailer
The Trailer
request HTTP header name.
public const string Trailer = "Trailer"
Field Value
Remarks
TransferEncoding
The Transfer-Encoding
request HTTP header name.
public const string TransferEncoding = "Transfer-Encoding"
Field Value
Remarks
Upgrade
The Upgrade
request HTTP header name.
public const string Upgrade = "Upgrade"
Field Value
Remarks
UserAgent
The User-Agent
request HTTP header name.
public const string UserAgent = "User-Agent"
Field Value
Remarks
Vary
The Vary
response HTTP header name.
public const string Vary = "Vary"
Field Value
Remarks
Via
The Via
request HTTP header name.
public const string Via = "Via"
Field Value
Remarks
Warning
The Warning
request HTTP header name.
public const string Warning = "Warning"
Field Value
Remarks
WWWAuthenticate
The WWW-Authenticate
response HTTP header name.
public const string WWWAuthenticate = "WWW-Authenticate"
Field Value
Remarks
XApiKey
The de facto standard X-Api-Key
request HTTP header name.
public const string XApiKey = "X-Api-Key"
Field Value
Remarks
X-Api-Key should not be used as authentication/authorization; it is merely a convenient first-line-of-defense in protecting your APIs. Any use of X-Api-Key in this framework will result in 403 Forbidden - and not 401 Unauthorized; for 401 you should use well-known authentication schemes. Further info: https://aws.amazon.com/premiumsupport/knowledge-center/api-gateway-troubleshoot-403-forbidden/
XCorrelationId
The de facto standard X-Correlation-ID
request HTTP header name.
public const string XCorrelationId = "X-Correlation-ID"
Field Value
Remarks
XCsrfToken
The de facto standard X-CSRF-Token
request HTTP header name.
public const string XCsrfToken = "X-CSRF-Token"
Field Value
Remarks
XForwardedFor
The de facto standard X-Forwarded-For
request HTTP header name.
public const string XForwardedFor = "X-Forwarded-For"
Field Value
Remarks
XForwardedHost
The de facto standard X-Forwarded-Host
request HTTP header name.
public const string XForwardedHost = "X-Forwarded-Host"
Field Value
Remarks
XForwardedProto
The de facto standard X-Forwarded-Proto
request HTTP header name.
public const string XForwardedProto = "X-Forwarded-Proto"
Field Value
Remarks
XRequestId
The de facto standard X-Request-ID
request HTTP header name.
public const string XRequestId = "X-Request-ID"