IHeaderDictionary Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents HttpRequest and HttpResponse headers
public interface class IHeaderDictionary : System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, Microsoft::Extensions::Primitives::StringValues>>, System::Collections::Generic::IDictionary<System::String ^, Microsoft::Extensions::Primitives::StringValues>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, Microsoft::Extensions::Primitives::StringValues>>
public interface IHeaderDictionary : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,Microsoft.Extensions.Primitives.StringValues>>, System.Collections.Generic.IDictionary<string,Microsoft.Extensions.Primitives.StringValues>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Microsoft.Extensions.Primitives.StringValues>>
type IHeaderDictionary = interface
interface IDictionary<string, StringValues>
interface ICollection<KeyValuePair<string, StringValues>>
interface seq<KeyValuePair<string, StringValues>>
interface IEnumerable
type IHeaderDictionary = interface
interface ICollection<KeyValuePair<string, StringValues>>
interface seq<KeyValuePair<string, StringValues>>
interface IEnumerable
interface IDictionary<string, StringValues>
Public Interface IHeaderDictionary
Implements ICollection(Of KeyValuePair(Of String, StringValues)), IDictionary(Of String, StringValues), IEnumerable(Of KeyValuePair(Of String, StringValues))
- Derived
- Implements
-
ICollection<KeyValuePair<String,StringValues>> ICollection<KeyValuePair<TKey,TValue>> IDictionary<String,StringValues> IEnumerable<KeyValuePair<String,StringValues>> IEnumerable<KeyValuePair<TKey,TValue>> IEnumerable<T> IEnumerable
Properties
Accept |
Gets or sets the |
AcceptCharset |
Gets or sets the |
AcceptEncoding |
Gets or sets the |
AcceptLanguage |
Gets or sets the |
AcceptRanges |
Gets or sets the |
AccessControlAllowCredentials |
Gets or sets the |
AccessControlAllowHeaders |
Gets or sets the |
AccessControlAllowMethods |
Gets or sets the |
AccessControlAllowOrigin |
Gets or sets the |
AccessControlExposeHeaders |
Gets or sets the |
AccessControlMaxAge |
Gets or sets the |
AccessControlRequestHeaders |
Gets or sets the |
AccessControlRequestMethod |
Gets or sets the |
Age |
Gets or sets the |
Allow |
Gets or sets the |
AltSvc |
Gets or sets the |
Authorization |
Gets or sets the |
Baggage |
Gets or sets the |
CacheControl |
Gets or sets the |
Connection |
Gets or sets the |
ContentDisposition |
Gets or sets the |
ContentEncoding |
Gets or sets the |
ContentLanguage |
Gets or sets the |
ContentLength |
Strongly typed access to the Content-Length header. Implementations must keep this in sync with the string representation. |
ContentLocation |
Gets or sets the |
ContentMD5 |
Gets or sets the |
ContentRange |
Gets or sets the |
ContentSecurityPolicy |
Gets or sets the |
ContentSecurityPolicyReportOnly |
Gets or sets the |
ContentType |
Gets or sets the |
Cookie |
Gets or sets the |
CorrelationContext |
Gets or sets the |
Date |
Gets or sets the |
ETag |
Gets or sets the |
Expect |
Gets or sets the |
Expires |
Gets or sets the |
From |
Gets or sets the |
GrpcAcceptEncoding |
Gets or sets the |
GrpcEncoding |
Gets or sets the |
GrpcMessage |
Gets or sets the |
GrpcStatus |
Gets or sets the |
GrpcTimeout |
Gets or sets the |
Host |
Gets or sets the |
IfMatch |
Gets or sets the |
IfModifiedSince |
Gets or sets the |
IfNoneMatch |
Gets or sets the |
IfRange |
Gets or sets the |
IfUnmodifiedSince |
Gets or sets the |
Item[String] |
IHeaderDictionary has a different indexer contract than IDictionary, where it will return StringValues.Empty for missing entries. |
KeepAlive |
Gets or sets the |
LastModified |
Gets or sets the |
Link |
Gets or sets the |
Location |
Gets or sets the |
MaxForwards |
Gets or sets the |
Origin |
Gets or sets the |
Pragma |
Gets or sets the |
ProxyAuthenticate |
Gets or sets the |
ProxyAuthorization |
Gets or sets the |
ProxyConnection |
Gets or sets the |
Range |
Gets or sets the |
Referer |
Gets or sets the |
RequestId |
Gets or sets the |
RetryAfter |
Gets or sets the |
SecWebSocketAccept |
Gets or sets the |
SecWebSocketExtensions |
Gets or sets the |
SecWebSocketKey |
Gets or sets the |
SecWebSocketProtocol |
Gets or sets the |
SecWebSocketVersion |
Gets or sets the |
Server |
Gets or sets the |
SetCookie |
Gets or sets the |
StrictTransportSecurity |
Gets or sets the |
TE |
Gets or sets the |
TraceParent |
Gets or sets the |
TraceState |
Gets or sets the |
Trailer |
Gets or sets the |
TransferEncoding |
Gets or sets the |
Translate |
Gets or sets the |
Upgrade |
Gets or sets the |
UpgradeInsecureRequests |
Gets or sets the |
UserAgent |
Gets or sets the |
Vary |
Gets or sets the |
Via |
Gets or sets the |
Warning |
Gets or sets the |
WebSocketSubProtocols |
Gets or sets the |
WWWAuthenticate |
Gets or sets the |
XContentTypeOptions |
Gets or sets the |
XFrameOptions |
Gets or sets the |
XPoweredBy |
Gets or sets the |
XRequestedWith |
Gets or sets the |
XUACompatible |
Gets or sets the |
XXSSProtection |
Gets or sets the |
Extension Methods
Append(IHeaderDictionary, String, StringValues) |
Add new values. Each item remains a separate array entry. |
AppendCommaSeparatedValues(IHeaderDictionary, String, String[]) |
Quotes any values containing commas, and then comma joins all of the values with any existing values. |
GetCommaSeparatedValues(IHeaderDictionary, String) |
Get the associated values from the collection separated into individual values. Quoted values will not be split, and the quotes will be removed. |
SetCommaSeparatedValues(IHeaderDictionary, String, String[]) |
Quotes any values containing commas, and then comma joins all of the values. |
AppendList<T>(IHeaderDictionary, String, IList<T>) |
Appends a sequence of values to IHeaderDictionary. |