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.
interface Microsoft.​AspNetCore.​Http.​IHeaderDictionary
Assembly: Microsoft.AspNetCore.Http.Features
Implemented Interfaces
- System.​Collections.​Generic.​IDictionary`2 (Inherits: ICollection<​KeyValuePair<​string, Microsoft.​Extensions.​Primitives.​StringValues>>IEnumerable<​KeyValuePair<​string, Microsoft.​Extensions.​Primitives.​StringValues>>IEnumerable)
Represents HttpRequest and HttpResponse headers
Properties
long?
ContentLength
Strongly typed access to the Content-Length header. Implementations must keep this in sync with the string representation.
Gets or sets the <c>Accept</c> HTTP header.
Gets or sets the <c>Accept-Charset</c> HTTP header.
Gets or sets the <c>Accept-Encoding</c> HTTP header.
Gets or sets the <c>Accept-Language</c> HTTP header.
Gets or sets the <c>Accept-Ranges</c> HTTP header.
AccessControlAllowCredentials
Gets or sets the <c>Access-Control-Allow-Credentials</c> HTTP header.
AccessControlAllowHeaders
Gets or sets the <c>Access-Control-Allow-Headers</c> HTTP header.
AccessControlAllowMethods
Gets or sets the <c>Access-Control-Allow-Methods</c> HTTP header.
AccessControlAllowOrigin
Gets or sets the <c>Access-Control-Allow-Origin</c> HTTP header.
AccessControlExposeHeaders
Gets or sets the <c>Access-Control-Expose-Headers</c> HTTP header.
AccessControlMaxAge
Gets or sets the <c>Access-Control-Max-Age</c> HTTP header.
AccessControlRequestHeaders
Gets or sets the <c>Access-Control-Request-Headers</c> HTTP header.
AccessControlRequestMethod
Gets or sets the <c>Access-Control-Request-Method</c> HTTP header.
Gets or sets the <c>Age</c> HTTP header.
Gets or sets the <c>Allow</c> HTTP header.
Gets or sets the <c>Alt-Svc</c> HTTP header.
Gets or sets the <c>Authorization</c> HTTP header.
Gets or sets the <c>baggage</c> HTTP header.
Gets or sets the <c>Cache-Control</c> HTTP header.
Gets or sets the <c>Connection</c> HTTP header.
ContentDisposition
Gets or sets the <c>Content-Disposition</c> HTTP header.
Gets or sets the <c>Content-Encoding</c> HTTP header.
Gets or sets the <c>Content-Language</c> HTTP header.
Gets or sets the <c>Content-Location</c> HTTP header.
Gets or sets the <c>Content-MD5</c> HTTP header.
Gets or sets the <c>Content-Range</c> HTTP header.
ContentSecurityPolicy
Gets or sets the <c>Content-Security-Policy</c> HTTP header.
ContentSecurityPolicyReportOnly
Gets or sets the <c>Content-Security-Policy-Report-Only</c> HTTP header.
Gets or sets the <c>Content-Type</c> HTTP header.
CorrelationContext
Gets or sets the <c>Correlation-Context</c> HTTP header.
Gets or sets the <c>Cookie</c> HTTP header.
Gets or sets the <c>Date</c> HTTP header.
Gets or sets the <c>ETag</c> HTTP header.
Gets or sets the <c>Expires</c> HTTP header.
Gets or sets the <c>Expect</c> HTTP header.
Gets or sets the <c>From</c> HTTP header.
GrpcAcceptEncoding
Gets or sets the <c>Grpc-Accept-Encoding</c> HTTP header.
Gets or sets the <c>Grpc-Encoding</c> HTTP header.
Gets or sets the <c>Grpc-Message</c> HTTP header.
Gets or sets the <c>Grpc-Status</c> HTTP header.
Gets or sets the <c>Grpc-Timeout</c> HTTP header.
Gets or sets the <c>Host</c> HTTP header.
Gets or sets the <c>Keep-Alive</c> HTTP header.
Gets or sets the <c>If-Match</c> HTTP header.
Gets or sets the <c>If-Modified-Since</c> HTTP header.
Gets or sets the <c>If-None-Match</c> HTTP header.
Gets or sets the <c>If-Range</c> HTTP header.
IfUnmodifiedSince
Gets or sets the <c>If-Unmodified-Since</c> HTTP header.
Gets or sets the <c>Last-Modified</c> HTTP header.
Gets or sets the <c>Link</c> HTTP header.
Gets or sets the <c>Location</c> HTTP header.
Gets or sets the <c>Max-Forwards</c> HTTP header.
Gets or sets the <c>Origin</c> HTTP header.
Gets or sets the <c>Pragma</c> HTTP header.
ProxyAuthenticate
Gets or sets the <c>Proxy-Authenticate</c> HTTP header.
ProxyAuthorization
Gets or sets the <c>Proxy-Authorization</c> HTTP header.
Gets or sets the <c>Proxy-Connection</c> HTTP header.
Gets or sets the <c>Range</c> HTTP header.
Gets or sets the <c>Referer</c> HTTP header.
Gets or sets the <c>Retry-After</c> HTTP header.
Gets or sets the <c>Request-Id</c> HTTP header.
SecWebSocketAccept
Gets or sets the <c>Sec-WebSocket-Accept</c> HTTP header.
Gets or sets the <c>Sec-WebSocket-Key</c> HTTP header.
SecWebSocketProtocol
Gets or sets the <c>Sec-WebSocket-Protocol</c> HTTP header.
SecWebSocketVersion
Gets or sets the <c>Sec-WebSocket-Version</c> HTTP header.
SecWebSocketExtensions
Gets or sets the <c>Sec-WebSocket-Extensions</c> HTTP header.
Gets or sets the <c>Server</c> HTTP header.
Gets or sets the <c>Set-Cookie</c> HTTP header.
StrictTransportSecurity
Gets or sets the <c>Strict-Transport-Security</c> HTTP header.
Gets or sets the <c>TE</c> HTTP header.
Gets or sets the <c>Trailer</c> HTTP header.
TransferEncoding
Gets or sets the <c>Transfer-Encoding</c> HTTP header.
Gets or sets the <c>Translate</c> HTTP header.
Gets or sets the <c>traceparent</c> HTTP header.
Gets or sets the <c>tracestate</c> HTTP header.
Gets or sets the <c>Upgrade</c> HTTP header.
UpgradeInsecureRequests
Gets or sets the <c>Upgrade-Insecure-Requests</c> HTTP header.
Gets or sets the <c>User-Agent</c> HTTP header.
Gets or sets the <c>Vary</c> HTTP header.
Gets or sets the <c>Via</c> HTTP header.
Gets or sets the <c>Warning</c> HTTP header.
WebSocketSubProtocols
Gets or sets the <c>Sec-WebSocket-Protocol</c> HTTP header.
Gets or sets the <c>WWW-Authenticate</c> HTTP header.
XContentTypeOptions
Gets or sets the <c>X-Content-Type-Options</c> HTTP header.
Gets or sets the <c>X-Frame-Options</c> HTTP header.
Gets or sets the <c>X-Powered-By</c> HTTP header.
Gets or sets the <c>X-Requested-With</c> HTTP header.
Gets or sets the <c>X-UA-Compatible</c> HTTP header.
Gets or sets the <c>X-XSS-Protection</c> HTTP header.