Share via


IHeaderDictionary Interface

Definição

Representa os cabeçalhos HttpRequest e HttpResponse

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
Public Interface IHeaderDictionary
Implements ICollection(Of KeyValuePair(Of String, StringValues)), IDictionary(Of String, StringValues), IEnumerable(Of KeyValuePair(Of String, StringValues))
Derivado
Implementações

Propriedades

Accept

Obtém ou define o cabeçalho HTTP Accept.

AcceptCharset

Obtém ou define o cabeçalho HTTP Accept-Charset.

AcceptEncoding

Obtém ou define o cabeçalho HTTP Accept-Encoding.

AcceptLanguage

Obtém ou define o cabeçalho HTTP Accept-Language.

AcceptRanges

Obtém ou define o cabeçalho HTTP Accept-Ranges.

AccessControlAllowCredentials

Obtém ou define o cabeçalho HTTP Access-Control-Allow-Credentials.

AccessControlAllowHeaders

Obtém ou define o cabeçalho HTTP Access-Control-Allow-Headers.

AccessControlAllowMethods

Obtém ou define o cabeçalho HTTP Access-Control-Allow-Methods.

AccessControlAllowOrigin

Obtém ou define o cabeçalho HTTP Access-Control-Allow-Origin.

AccessControlExposeHeaders

Obtém ou define o cabeçalho HTTP Access-Control-Expose-Headers.

AccessControlMaxAge

Obtém ou define o cabeçalho HTTP Access-Control-Max-Age.

AccessControlRequestHeaders

Obtém ou define o cabeçalho HTTP Access-Control-Request-Headers.

AccessControlRequestMethod

Obtém ou define o cabeçalho HTTP Access-Control-Request-Method.

Age

Obtém ou define o cabeçalho HTTP Age.

Allow

Obtém ou define o cabeçalho HTTP Allow.

AltSvc

Obtém ou define o cabeçalho HTTP Alt-Svc.

Authorization

Obtém ou define o cabeçalho HTTP Authorization.

Baggage

Obtém ou define o cabeçalho HTTP baggage.

CacheControl

Obtém ou define o cabeçalho HTTP Cache-Control.

Connection

Obtém ou define o cabeçalho HTTP Connection.

ContentDisposition

Obtém ou define o cabeçalho HTTP Content-Disposition.

ContentEncoding

Obtém ou define o cabeçalho HTTP Content-Encoding.

ContentLanguage

Obtém ou define o cabeçalho HTTP Content-Language.

ContentLength

Acesso fortemente tipado ao cabeçalho Content-Length. As implementações devem manter isso em sincronia com a representação de cadeia de caracteres.

ContentLocation

Obtém ou define o cabeçalho HTTP Content-Location.

ContentMD5

Obtém ou define o cabeçalho HTTP Content-MD5.

ContentRange

Obtém ou define o cabeçalho HTTP Content-Range.

ContentSecurityPolicy

Obtém ou define o cabeçalho HTTP Content-Security-Policy.

ContentSecurityPolicyReportOnly

Obtém ou define o cabeçalho HTTP Content-Security-Policy-Report-Only.

ContentType

Obtém ou define o cabeçalho HTTP Content-Type.

Cookie

Obtém ou define o cabeçalho HTTP Cookie.

CorrelationContext

Obtém ou define o cabeçalho HTTP Correlation-Context.

Date

Obtém ou define o cabeçalho HTTP Date.

ETag

Obtém ou define o cabeçalho HTTP ETag.

Expect

Obtém ou define o cabeçalho HTTP Expect.

Expires

Obtém ou define o cabeçalho HTTP Expires.

From

Obtém ou define o cabeçalho HTTP From.

GrpcAcceptEncoding

Obtém ou define o cabeçalho HTTP Grpc-Accept-Encoding.

GrpcEncoding

Obtém ou define o cabeçalho HTTP Grpc-Encoding.

GrpcMessage

Obtém ou define o cabeçalho HTTP Grpc-Message.

GrpcStatus

Obtém ou define o cabeçalho HTTP Grpc-Status.

GrpcTimeout

Obtém ou define o cabeçalho HTTP Grpc-Timeout.

Host

Obtém ou define o cabeçalho HTTP Host.

IfMatch

Obtém ou define o cabeçalho HTTP If-Match.

IfModifiedSince

Obtém ou define o cabeçalho HTTP If-Modified-Since.

IfNoneMatch

Obtém ou define o cabeçalho HTTP If-None-Match.

IfRange

Obtém ou define o cabeçalho HTTP If-Range.

IfUnmodifiedSince

Obtém ou define o cabeçalho HTTP If-Unmodified-Since.

Item[String]

IHeaderDictionary tem um contrato de indexador diferente do IDictionary, em que retornará StringValues.Empty para entradas ausentes.

KeepAlive

Obtém ou define o cabeçalho HTTP Keep-Alive.

LastModified

Obtém ou define o cabeçalho HTTP Last-Modified.

Link

Obtém ou define o cabeçalho HTTP Link.

Location

Obtém ou define o cabeçalho HTTP Location.

MaxForwards

Obtém ou define o cabeçalho HTTP Max-Forwards.

Origin

Obtém ou define o cabeçalho HTTP Origin.

Pragma

Obtém ou define o cabeçalho HTTP Pragma.

ProxyAuthenticate

Obtém ou define o cabeçalho HTTP Proxy-Authenticate.

ProxyAuthorization

Obtém ou define o cabeçalho HTTP Proxy-Authorization.

ProxyConnection

Obtém ou define o cabeçalho HTTP Proxy-Connection.

Range

Obtém ou define o cabeçalho HTTP Range.

Referer

Obtém ou define o cabeçalho HTTP Referer.

RequestId

Obtém ou define o cabeçalho HTTP Request-Id.

RetryAfter

Obtém ou define o cabeçalho HTTP Retry-After.

SecWebSocketAccept

Obtém ou define o cabeçalho HTTP Sec-WebSocket-Accept.

SecWebSocketExtensions

Obtém ou define o cabeçalho HTTP Sec-WebSocket-Extensions.

SecWebSocketKey

Obtém ou define o cabeçalho HTTP Sec-WebSocket-Key.

SecWebSocketProtocol

Obtém ou define o cabeçalho HTTP Sec-WebSocket-Protocol.

SecWebSocketVersion

Obtém ou define o cabeçalho HTTP Sec-WebSocket-Version.

Server

Obtém ou define o cabeçalho HTTP Server.

SetCookie

Obtém ou define o cabeçalho HTTP Set-Cookie.

StrictTransportSecurity

Obtém ou define o cabeçalho HTTP Strict-Transport-Security.

TE

Obtém ou define o cabeçalho HTTP TE.

TraceParent

Obtém ou define o cabeçalho HTTP traceparent.

TraceState

Obtém ou define o cabeçalho HTTP tracestate.

Trailer

Obtém ou define o cabeçalho HTTP Trailer.

TransferEncoding

Obtém ou define o cabeçalho HTTP Transfer-Encoding.

Translate

Obtém ou define o cabeçalho HTTP Translate.

Upgrade

Obtém ou define o cabeçalho HTTP Upgrade.

UpgradeInsecureRequests

Obtém ou define o cabeçalho HTTP Upgrade-Insecure-Requests.

UserAgent

Obtém ou define o cabeçalho HTTP User-Agent.

Vary

Obtém ou define o cabeçalho HTTP Vary.

Via

Obtém ou define o cabeçalho HTTP Via.

Warning

Obtém ou define o cabeçalho HTTP Warning.

WebSocketSubProtocols

Obtém ou define o cabeçalho HTTP Sec-WebSocket-Protocol.

WWWAuthenticate

Obtém ou define o cabeçalho HTTP WWW-Authenticate.

XContentTypeOptions

Obtém ou define o cabeçalho HTTP X-Content-Type-Options.

XFrameOptions

Obtém ou define o cabeçalho HTTP X-Frame-Options.

XPoweredBy

Obtém ou define o cabeçalho HTTP X-Powered-By.

XRequestedWith

Obtém ou define o cabeçalho HTTP X-Requested-With.

XUACompatible

Obtém ou define o cabeçalho HTTP X-UA-Compatible.

XXSSProtection

Obtém ou define o cabeçalho HTTP X-XSS-Protection.

Métodos de Extensão

Append(IHeaderDictionary, String, StringValues)

Adiciona novos valores. Cada item permanece como uma entrada da matriz separada.

AppendCommaSeparatedValues(IHeaderDictionary, String, String[])

Cita todos os valores que contêm vírgulas e, em seguida, a vírgula une todos os valores com quaisquer valores existentes.

GetCommaSeparatedValues(IHeaderDictionary, String)

Obtém os valores associados da coleção separados em valores individuais. Os valores entre aspas não serão divididos, e as aspas serão removidas.

SetCommaSeparatedValues(IHeaderDictionary, String, String[])

Cita todos os valores que contêm vírgulas e, em seguida, a vírgula une todos os valores.

AppendList<T>(IHeaderDictionary, String, IList<T>)

Acrescenta uma sequência de valores a IHeaderDictionary.

Aplica-se a