Table of Contents

Class HttpHeaderNames

Namespace
Cuemon.Net.Http
Assembly
Cuemon.Core.dll

Defines constants for well-known HTTP headers.

public static class HttpHeaderNames
Inheritance
Object
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

String

Remarks

AcceptCharset

The Accept-Charset request HTTP header name.

public const string AcceptCharset = "Accept-Charset"

Field Value

String

Remarks

AcceptEncoding

The Accept-Encoding request HTTP header name.

public const string AcceptEncoding = "Accept-Encoding"

Field Value

String

Remarks

AcceptLanguage

The Accept-Language request HTTP header name.

public const string AcceptLanguage = "Accept-Language"

Field Value

String

Remarks

AcceptRanges

The Accept-Ranges response HTTP header name.

public const string AcceptRanges = "Accept-Ranges"

Field Value

String

Remarks

AccessControlAllowCredentials

The Access-Control-Allow-Credentials response HTTP header name.

public const string AccessControlAllowCredentials = "Access-Control-Allow-Credentials"

Field Value

String

Remarks

AccessControlAllowHeaders

The Access-Control-Allow-Headers response HTTP header name.

public const string AccessControlAllowHeaders = "Access-Control-Allow-Headers"

Field Value

String

Remarks

AccessControlAllowMethods

The Access-Control-Allow-Methods response HTTP header name.

public const string AccessControlAllowMethods = "Access-Control-Allow-Methods"

Field Value

String

Remarks

AccessControlAllowOrigin

The Access-Control-Allow-Origin response HTTP header name.

public const string AccessControlAllowOrigin = "Access-Control-Allow-Origin"

Field Value

String

Remarks

AccessControlExposeHeaders

The Access-Control-Expose-Headers response HTTP header name.

public const string AccessControlExposeHeaders = "Access-Control-Expose-Headers"

Field Value

String

Remarks

AccessControlMaxAge

The Access-Control-Max-Age response HTTP header name.

public const string AccessControlMaxAge = "Access-Control-Max-Age"

Field Value

String

Remarks

AccessControlRequestHeaders

The Access-Control-Request-Headers request HTTP header name.

public const string AccessControlRequestHeaders = "Access-Control-Request-Headers"

Field Value

String

Remarks

AccessControlRequestMethod

The Access-Control-Request-Method request HTTP header name.

public const string AccessControlRequestMethod = "Access-Control-Request-Method"

Field Value

String

Remarks

Age

The Age response HTTP header name.

public const string Age = "Age"

Field Value

String

Remarks

Allow

The Allow response HTTP header name.

public const string Allow = "Allow"

Field Value

String

Remarks

Authorization

The Authorization request HTTP header name.

public const string Authorization = "Authorization"

Field Value

String

Remarks

CacheControl

The Cache-Control request HTTP header name.

public const string CacheControl = "Cache-Control"

Field Value

String

Remarks

Connection

The Connection request HTTP header name.

public const string Connection = "Connection"

Field Value

String

Remarks

ContentDisposition

The Content-Disposition response HTTP header name.

public const string ContentDisposition = "Content-Disposition"

Field Value

String

Remarks

ContentEncoding

The Content-Encoding request HTTP header name.

public const string ContentEncoding = "Content-Encoding"

Field Value

String

Remarks

ContentLanguage

The Content-Language response HTTP header name.

public const string ContentLanguage = "Content-Language"

Field Value

String

Remarks

ContentLength

The Content-Length request HTTP header name.

public const string ContentLength = "Content-Length"

Field Value

String

Remarks

ContentLocation

The Content-Location response HTTP header name.

public const string ContentLocation = "Content-Location"

Field Value

String

Remarks

ContentMD5

The Content-MD5 request HTTP header name.

public const string ContentMD5 = "Content-MD5"

Field Value

String

Remarks

ContentRange

The Content-Range response HTTP header name.

public const string ContentRange = "Content-Range"

Field Value

String

Remarks

ContentSecurityPolicy

The Content-Security-Policy response HTTP header name.

public const string ContentSecurityPolicy = "Content-Security-Policy"

Field Value

String

Remarks

ContentSecurityPolicyReportOnly

The Content-Security-Policy-Report-Only response HTTP header name.

public const string ContentSecurityPolicyReportOnly = "Content-Security-Policy-Report-Only"

Field Value

String

Remarks

ContentType

The Content-Type request HTTP header name.

public const string ContentType = "Content-Type"

Field Value

String

Remarks

The Cookie request HTTP header name.

public const string Cookie = "Cookie"

Field Value

String

Date

The Date request HTTP header name.

public const string Date = "Date"

Field Value

String

Remarks

ETag

The ETag response HTTP header name.

public const string ETag = "ETag"

Field Value

String

Remarks

Expect

The Expect request HTTP header name.

public const string Expect = "Expect"

Field Value

String

Remarks

Expires

The Expires response HTTP header name.

public const string Expires = "Expires"

Field Value

String

Remarks

Forwarded

The Forwarded request HTTP header name.

public const string Forwarded = "Forwarded"

Field Value

String

Remarks

From

The From request HTTP header name.

public const string From = "From"

Field Value

String

Remarks

Host

The Host request HTTP header name.

public const string Host = "Host"

Field Value

String

Remarks

Http2Settings

The HTTP2-Settings request HTTP header name.

public const string Http2Settings = "HTTP2-Settings"

Field Value

String

Remarks

IfMatch

The If-Match request HTTP header name.

public const string IfMatch = "If-Match"

Field Value

String

Remarks

IfModifiedSince

The If-Modified-Since request HTTP header name.

public const string IfModifiedSince = "If-Modified-Since"

Field Value

String

Remarks

IfNoneMatch

The If-None-Match request HTTP header name.

public const string IfNoneMatch = "If-None-Match"

Field Value

String

Remarks

IfRange

The If-Range request HTTP header name.

public const string IfRange = "If-Range"

Field Value

String

Remarks

IfUnmodifiedSince

The If-Unmodified-Since request HTTP header name.

public const string IfUnmodifiedSince = "If-Unmodified-Since"

Field Value

String

Remarks

LastModified

The Last-Modified response HTTP header name.

public const string LastModified = "Last-Modified"

Field Value

String

Remarks

Location

The Location response HTTP header name.

public const string Location = "Location"

Field Value

String

Remarks

MaxForwards

The Max-Forwards request HTTP header name.

public const string MaxForwards = "Max-Forwards"

Field Value

String

Remarks

Origin

The Origin request HTTP header name.

public const string Origin = "Origin"

Field Value

String

Remarks

Pragma

The Pragma request HTTP header name.

public const string Pragma = "Pragma"

Field Value

String

Remarks

Prefer

The Prefer request HTTP header name.

public const string Prefer = "Prefer"

Field Value

String

Remarks

ProxyAuthenticate

The Proxy-Authenticate response HTTP header name.

public const string ProxyAuthenticate = "Proxy-Authenticate"

Field Value

String

Remarks

ProxyAuthorization

The Proxy-Authorization request HTTP header name.

public const string ProxyAuthorization = "Proxy-Authorization"

Field Value

String

Remarks

Range

The Range request HTTP header name.

public const string Range = "Range"

Field Value

String

Remarks

Referer

The Referer request HTTP header name.

public const string Referer = "Referer"

Field Value

String

Remarks

RetryAfter

The Retry-After response HTTP header name.

public const string RetryAfter = "Retry-After"

Field Value

String

Remarks

Server

The Server response HTTP header name.

public const string Server = "Server"

Field Value

String

Remarks

ServerTiming

The Server-Timing response HTTP header name.

public const string ServerTiming = "Server-Timing"

Field Value

String

Remarks

SetCookie

The Set-Cookie response HTTP header name.

public const string SetCookie = "Set-Cookie"

Field Value

String

Remarks

StrictTransportSecurity

The Strict-Transport-Security response HTTP header name.

public const string StrictTransportSecurity = "Strict-Transport-Security"

Field Value

String

Remarks

TE

The TE request HTTP header name.

public const string TE = "TE"

Field Value

String

Remarks

Trailer

The Trailer request HTTP header name.

public const string Trailer = "Trailer"

Field Value

String

Remarks

TransferEncoding

The Transfer-Encoding request HTTP header name.

public const string TransferEncoding = "Transfer-Encoding"

Field Value

String

Remarks

Upgrade

The Upgrade request HTTP header name.

public const string Upgrade = "Upgrade"

Field Value

String

Remarks

UserAgent

The User-Agent request HTTP header name.

public const string UserAgent = "User-Agent"

Field Value

String

Remarks

Vary

The Vary response HTTP header name.

public const string Vary = "Vary"

Field Value

String

Remarks

Via

The Via request HTTP header name.

public const string Via = "Via"

Field Value

String

Remarks

Warning

The Warning request HTTP header name.

public const string Warning = "Warning"

Field Value

String

Remarks

WWWAuthenticate

The WWW-Authenticate response HTTP header name.

public const string WWWAuthenticate = "WWW-Authenticate"

Field Value

String

Remarks

XApiKey

The de facto standard X-Api-Key request HTTP header name.

public const string XApiKey = "X-Api-Key"

Field Value

String

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

String

Remarks

XCsrfToken

The de facto standard X-CSRF-Token request HTTP header name.

public const string XCsrfToken = "X-CSRF-Token"

Field Value

String

Remarks

XForwardedFor

The de facto standard X-Forwarded-For request HTTP header name.

public const string XForwardedFor = "X-Forwarded-For"

Field Value

String

Remarks

XForwardedHost

The de facto standard X-Forwarded-Host request HTTP header name.

public const string XForwardedHost = "X-Forwarded-Host"

Field Value

String

Remarks

XForwardedProto

The de facto standard X-Forwarded-Proto request HTTP header name.

public const string XForwardedProto = "X-Forwarded-Proto"

Field Value

String

Remarks

XRequestId

The de facto standard X-Request-ID request HTTP header name.

public const string XRequestId = "X-Request-ID"

Field Value

String

Remarks