Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Microsoft.​Net.​Http.​Headers.​HeaderNames
Assembly: Microsoft.Net.Http.Headers
Inheritance: object → HeaderNames
Defines constants for well-known HTTP headers.
Fields and Constants
public static readonly
string
Accept
Gets the <c>Accept</c> HTTP header name.
public static readonly
string
AcceptCharset
Gets the <c>Accept-Charset</c> HTTP header name.
public static readonly
string
AcceptEncoding
Gets the <c>Accept-Encoding</c> HTTP header name.
public static readonly
string
AcceptLanguage
Gets the <c>Accept-Language</c> HTTP header name.
public static readonly
string
AcceptRanges
Gets the <c>Accept-Ranges</c> HTTP header name.
public static readonly
string
AccessControlAllowCredentials
Gets the <c>Access-Control-Allow-Credentials</c> HTTP header name.
public static readonly
string
AccessControlAllowHeaders
Gets the <c>Access-Control-Allow-Headers</c> HTTP header name.
public static readonly
string
AccessControlAllowMethods
Gets the <c>Access-Control-Allow-Methods</c> HTTP header name.
public static readonly
string
AccessControlAllowOrigin
Gets the <c>Access-Control-Allow-Origin</c> HTTP header name.
public static readonly
string
AccessControlExposeHeaders
Gets the <c>Access-Control-Expose-Headers</c> HTTP header name.
public static readonly
string
AccessControlMaxAge
Gets the <c>Access-Control-Max-Age</c> HTTP header name.
public static readonly
string
AccessControlRequestHeaders
Gets the <c>Access-Control-Request-Headers</c> HTTP header name.
public static readonly
string
AccessControlRequestMethod
Gets the <c>Access-Control-Request-Method</c> HTTP header name.
public static readonly
string
Age
Gets the <c>Age</c> HTTP header name.
public static readonly
string
Allow
Gets the <c>Allow</c> HTTP header name.
public static readonly
string
AltSvc
Gets the <c>Alt-Svc</c> HTTP header name.
public static readonly
string
Authority
Gets the <c>:authority</c> HTTP header name.
public static readonly
string
Authorization
Gets the <c>Authorization</c> HTTP header name.
public static readonly
string
Baggage
Gets the <c>baggage</c> HTTP header name.
public static readonly
string
CacheControl
Gets the <c>Cache-Control</c> HTTP header name.
public static readonly
string
Connection
Gets the <c>Connection</c> HTTP header name.
public static readonly
string
ContentDisposition
Gets the <c>Content-Disposition</c> HTTP header name.
public static readonly
string
ContentEncoding
Gets the <c>Content-Encoding</c> HTTP header name.
public static readonly
string
ContentLanguage
Gets the <c>Content-Language</c> HTTP header name.
public static readonly
string
ContentLength
Gets the <c>Content-Length</c> HTTP header name.
public static readonly
string
ContentLocation
Gets the <c>Content-Location</c> HTTP header name.
public static readonly
string
ContentMD5
Gets the <c>Content-MD5</c> HTTP header name.
public static readonly
string
ContentRange
Gets the <c>Content-Range</c> HTTP header name.
public static readonly
string
ContentSecurityPolicy
Gets the <c>Content-Security-Policy</c> HTTP header name.
public static readonly
string
ContentSecurityPolicyReportOnly
Gets the <c>Content-Security-Policy-Report-Only</c> HTTP header name.
public static readonly
string
ContentType
Gets the <c>Content-Type</c> HTTP header name.
public static readonly
string
CorrelationContext
Gets the <c>Correlation-Context</c> HTTP header name.
public static readonly
string
Cookie
Gets the <c>Cookie</c> HTTP header name.
public static readonly
string
Date
Gets the <c>Date</c> HTTP header name.
public static readonly
string
DNT
Gets the <c>DNT</c> HTTP header name.
public static readonly
string
ETag
Gets the <c>ETag</c> HTTP header name.
public static readonly
string
Expires
Gets the <c>Expires</c> HTTP header name.
public static readonly
string
Expect
Gets the <c>Expect</c> HTTP header name.
public static readonly
string
From
Gets the <c>From</c> HTTP header name.
public static readonly
string
GrpcAcceptEncoding
Gets the <c>Grpc-Accept-Encoding</c> HTTP header name.
public static readonly
string
GrpcEncoding
Gets the <c>Grpc-Encoding</c> HTTP header name.
public static readonly
string
GrpcMessage
Gets the <c>Grpc-Message</c> HTTP header name.
public static readonly
string
GrpcStatus
Gets the <c>Grpc-Status</c> HTTP header name.
public static readonly
string
GrpcTimeout
Gets the <c>Grpc-Timeout</c> HTTP header name.
public static readonly
string
Host
Gets the <c>Host</c> HTTP header name.
public static readonly
string
KeepAlive
Gets the <c>Keep-Alive</c> HTTP header name.
public static readonly
string
IfMatch
Gets the <c>If-Match</c> HTTP header name.
public static readonly
string
IfModifiedSince
Gets the <c>If-Modified-Since</c> HTTP header name.
public static readonly
string
IfNoneMatch
Gets the <c>If-None-Match</c> HTTP header name.
public static readonly
string
IfRange
Gets the <c>If-Range</c> HTTP header name.
public static readonly
string
IfUnmodifiedSince
Gets the <c>If-Unmodified-Since</c> HTTP header name.
public static readonly
string
LastModified
Gets the <c>Last-Modified</c> HTTP header name.
public static readonly
string
Link
Gets the <c>Link</c> HTTP header name.
public static readonly
string
Location
Gets the <c>Location</c> HTTP header name.
public static readonly
string
MaxForwards
Gets the <c>Max-Forwards</c> HTTP header name.
public static readonly
string
Method
Gets the <c>:method</c> HTTP header name.
public static readonly
string
Origin
Gets the <c>Origin</c> HTTP header name.
public static readonly
string
Path
Gets the <c>:path</c> HTTP header name.
public static readonly
string
Pragma
Gets the <c>Pragma</c> HTTP header name.
public static readonly
string
ProxyAuthenticate
Gets the <c>Proxy-Authenticate</c> HTTP header name.
public static readonly
string
ProxyAuthorization
Gets the <c>Proxy-Authorization</c> HTTP header name.
public static readonly
string
ProxyConnection
Gets the <c>Proxy-Connection</c> HTTP header name.
public static readonly
string
Range
Gets the <c>Range</c> HTTP header name.
public static readonly
string
Referer
Gets the <c>Referer</c> HTTP header name.
public static readonly
string
RetryAfter
Gets the <c>Retry-After</c> HTTP header name.
public static readonly
string
RequestId
Gets the <c>Request-Id</c> HTTP header name.
public static readonly
string
Scheme
Gets the <c>:scheme</c> HTTP header name.
public static readonly
string
SecWebSocketAccept
Gets the <c>Sec-WebSocket-Accept</c> HTTP header name.
public static readonly
string
SecWebSocketKey
Gets the <c>Sec-WebSocket-Key</c> HTTP header name.
public static readonly
string
SecWebSocketProtocol
Gets the <c>Sec-WebSocket-Protocol</c> HTTP header name.
public static readonly
string
SecWebSocketVersion
Gets the <c>Sec-WebSocket-Version</c> HTTP header name.
public static readonly
string
SecWebSocketExtensions
Gets the <c>Sec-WebSocket-Extensions</c> HTTP header name.
public static readonly
string
Server
Gets the <c>Server</c> HTTP header name.
public static readonly
string
SetCookie
Gets the <c>Set-Cookie</c> HTTP header name.
public static readonly
string
Status
Gets the <c>:status</c> HTTP header name.
public static readonly
string
StrictTransportSecurity
Gets the <c>Strict-Transport-Security</c> HTTP header name.
public static readonly
string
TE
Gets the <c>TE</c> HTTP header name.
public static readonly
string
Trailer
Gets the <c>Trailer</c> HTTP header name.
public static readonly
string
TransferEncoding
Gets the <c>Transfer-Encoding</c> HTTP header name.
public static readonly
string
Translate
Gets the <c>Translate</c> HTTP header name.
public static readonly
string
TraceParent
Gets the <c>traceparent</c> HTTP header name.
public static readonly
string
TraceState
Gets the <c>tracestate</c> HTTP header name.
public static readonly
string
Upgrade
Gets the <c>Upgrade</c> HTTP header name.
public static readonly
string
UpgradeInsecureRequests
Gets the <c>Upgrade-Insecure-Requests</c> HTTP header name.
public static readonly
string
UserAgent
Gets the <c>User-Agent</c> HTTP header name.
public static readonly
string
Vary
Gets the <c>Vary</c> HTTP header name.
public static readonly
string
Via
Gets the <c>Via</c> HTTP header name.
public static readonly
string
Warning
Gets the <c>Warning</c> HTTP header name.
public static readonly
string
WebSocketSubProtocols
Gets the <c>Sec-WebSocket-Protocol</c> HTTP header name.
public static readonly
string
WWWAuthenticate
Gets the <c>WWW-Authenticate</c> HTTP header name.
public static readonly
string
XContentTypeOptions
Gets the <c>X-Content-Type-Options</c> HTTP header name.
public static readonly
string
XFrameOptions
Gets the <c>X-Frame-Options</c> HTTP header name.
public static readonly
string
XPoweredBy
Gets the <c>X-Powered-By</c> HTTP header name.
public static readonly
string
XRequestedWith
Gets the <c>X-Requested-With</c> HTTP header name.
public static readonly
string
XUACompatible
Gets the <c>X-UA-Compatible</c> HTTP header name.
public static readonly
string
XXSSProtection
Gets the <c>X-XSS-Protection</c> HTTP header name.
Methods
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object