IHeaderDictionary Interfejs

Definicja

Reprezentuje nagłówki HttpRequest i 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))
Pochodne
Implementuje

Właściwości

Accept

Pobiera lub ustawia Accept nagłówek HTTP.

AcceptCharset

Pobiera lub ustawia Accept-Charset nagłówek HTTP.

AcceptEncoding

Pobiera lub ustawia Accept-Encoding nagłówek HTTP.

AcceptLanguage

Pobiera lub ustawia Accept-Language nagłówek HTTP.

AcceptRanges

Pobiera lub ustawia Accept-Ranges nagłówek HTTP.

AccessControlAllowCredentials

Pobiera lub ustawia Access-Control-Allow-Credentials nagłówek HTTP.

AccessControlAllowHeaders

Pobiera lub ustawia Access-Control-Allow-Headers nagłówek HTTP.

AccessControlAllowMethods

Pobiera lub ustawia Access-Control-Allow-Methods nagłówek HTTP.

AccessControlAllowOrigin

Pobiera lub ustawia Access-Control-Allow-Origin nagłówek HTTP.

AccessControlExposeHeaders

Pobiera lub ustawia Access-Control-Expose-Headers nagłówek HTTP.

AccessControlMaxAge

Pobiera lub ustawia Access-Control-Max-Age nagłówek HTTP.

AccessControlRequestHeaders

Pobiera lub ustawia Access-Control-Request-Headers nagłówek HTTP.

AccessControlRequestMethod

Pobiera lub ustawia Access-Control-Request-Method nagłówek HTTP.

Age

Pobiera lub ustawia Age nagłówek HTTP.

Allow

Pobiera lub ustawia Allow nagłówek HTTP.

AltSvc

Pobiera lub ustawia Alt-Svc nagłówek HTTP.

Authorization

Pobiera lub ustawia Authorization nagłówek HTTP.

Baggage

Pobiera lub ustawia baggage nagłówek HTTP.

CacheControl

Pobiera lub ustawia Cache-Control nagłówek HTTP.

Connection

Pobiera lub ustawia Connection nagłówek HTTP.

ContentDisposition

Pobiera lub ustawia Content-Disposition nagłówek HTTP.

ContentEncoding

Pobiera lub ustawia Content-Encoding nagłówek HTTP.

ContentLanguage

Pobiera lub ustawia Content-Language nagłówek HTTP.

ContentLength

Silnie typizowany dostęp do nagłówka Content-Length. Implementacje muszą zachować synchronizację z reprezentacją ciągu.

ContentLocation

Pobiera lub ustawia Content-Location nagłówek HTTP.

ContentMD5

Pobiera lub ustawia Content-MD5 nagłówek HTTP.

ContentRange

Pobiera lub ustawia Content-Range nagłówek HTTP.

ContentSecurityPolicy

Pobiera lub ustawia Content-Security-Policy nagłówek HTTP.

ContentSecurityPolicyReportOnly

Pobiera lub ustawia Content-Security-Policy-Report-Only nagłówek HTTP.

ContentType

Pobiera lub ustawia Content-Type nagłówek HTTP.

Cookie

Pobiera lub ustawia Cookie nagłówek HTTP.

CorrelationContext

Pobiera lub ustawia Correlation-Context nagłówek HTTP.

Date

Pobiera lub ustawia Date nagłówek HTTP.

ETag

Pobiera lub ustawia ETag nagłówek HTTP.

Expect

Pobiera lub ustawia Expect nagłówek HTTP.

Expires

Pobiera lub ustawia Expires nagłówek HTTP.

From

Pobiera lub ustawia From nagłówek HTTP.

GrpcAcceptEncoding

Pobiera lub ustawia Grpc-Accept-Encoding nagłówek HTTP.

GrpcEncoding

Pobiera lub ustawia Grpc-Encoding nagłówek HTTP.

GrpcMessage

Pobiera lub ustawia Grpc-Message nagłówek HTTP.

GrpcStatus

Pobiera lub ustawia Grpc-Status nagłówek HTTP.

GrpcTimeout

Pobiera lub ustawia Grpc-Timeout nagłówek HTTP.

Host

Pobiera lub ustawia Host nagłówek HTTP.

IfMatch

Pobiera lub ustawia If-Match nagłówek HTTP.

IfModifiedSince

Pobiera lub ustawia If-Modified-Since nagłówek HTTP.

IfNoneMatch

Pobiera lub ustawia If-None-Match nagłówek HTTP.

IfRange

Pobiera lub ustawia If-Range nagłówek HTTP.

IfUnmodifiedSince

Pobiera lub ustawia If-Unmodified-Since nagłówek HTTP.

Item[String]

Element IHeaderDictionary ma inny kontrakt indeksatora niż IDictionary, gdzie zwróci wartość StringValues.Empty dla brakujących wpisów.

KeepAlive

Pobiera lub ustawia Keep-Alive nagłówek HTTP.

LastModified

Pobiera lub ustawia Last-Modified nagłówek HTTP.

Link

Pobiera lub ustawia Link nagłówek HTTP.

Location

Pobiera lub ustawia Location nagłówek HTTP.

MaxForwards

Pobiera lub ustawia Max-Forwards nagłówek HTTP.

Origin

Pobiera lub ustawia Origin nagłówek HTTP.

Pragma

Pobiera lub ustawia Pragma nagłówek HTTP.

ProxyAuthenticate

Pobiera lub ustawia Proxy-Authenticate nagłówek HTTP.

ProxyAuthorization

Pobiera lub ustawia Proxy-Authorization nagłówek HTTP.

ProxyConnection

Pobiera lub ustawia Proxy-Connection nagłówek HTTP.

Range

Pobiera lub ustawia Range nagłówek HTTP.

Referer

Pobiera lub ustawia Referer nagłówek HTTP.

RequestId

Pobiera lub ustawia Request-Id nagłówek HTTP.

RetryAfter

Pobiera lub ustawia Retry-After nagłówek HTTP.

SecWebSocketAccept

Pobiera lub ustawia Sec-WebSocket-Accept nagłówek HTTP.

SecWebSocketExtensions

Pobiera lub ustawia Sec-WebSocket-Extensions nagłówek HTTP.

SecWebSocketKey

Pobiera lub ustawia Sec-WebSocket-Key nagłówek HTTP.

SecWebSocketProtocol

Pobiera lub ustawia Sec-WebSocket-Protocol nagłówek HTTP.

SecWebSocketVersion

Pobiera lub ustawia Sec-WebSocket-Version nagłówek HTTP.

Server

Pobiera lub ustawia Server nagłówek HTTP.

SetCookie

Pobiera lub ustawia Set-Cookie nagłówek HTTP.

StrictTransportSecurity

Pobiera lub ustawia Strict-Transport-Security nagłówek HTTP.

TE

Pobiera lub ustawia TE nagłówek HTTP.

TraceParent

Pobiera lub ustawia traceparent nagłówek HTTP.

TraceState

Pobiera lub ustawia tracestate nagłówek HTTP.

Trailer

Pobiera lub ustawia Trailer nagłówek HTTP.

TransferEncoding

Pobiera lub ustawia Transfer-Encoding nagłówek HTTP.

Translate

Pobiera lub ustawia Translate nagłówek HTTP.

Upgrade

Pobiera lub ustawia Upgrade nagłówek HTTP.

UpgradeInsecureRequests

Pobiera lub ustawia Upgrade-Insecure-Requests nagłówek HTTP.

UserAgent

Pobiera lub ustawia User-Agent nagłówek HTTP.

Vary

Pobiera lub ustawia Vary nagłówek HTTP.

Via

Pobiera lub ustawia Via nagłówek HTTP.

Warning

Pobiera lub ustawia Warning nagłówek HTTP.

WebSocketSubProtocols

Pobiera lub ustawia Sec-WebSocket-Protocol nagłówek HTTP.

WWWAuthenticate

Pobiera lub ustawia WWW-Authenticate nagłówek HTTP.

XContentTypeOptions

Pobiera lub ustawia X-Content-Type-Options nagłówek HTTP.

XFrameOptions

Pobiera lub ustawia X-Frame-Options nagłówek HTTP.

XPoweredBy

Pobiera lub ustawia X-Powered-By nagłówek HTTP.

XRequestedWith

Pobiera lub ustawia X-Requested-With nagłówek HTTP.

XUACompatible

Pobiera lub ustawia X-UA-Compatible nagłówek HTTP.

XXSSProtection

Pobiera lub ustawia X-XSS-Protection nagłówek HTTP.

Metody rozszerzania

Append(IHeaderDictionary, String, StringValues)

Dodaj nowe wartości. Każdy element pozostaje osobnym wpisem tablicy.

AppendCommaSeparatedValues(IHeaderDictionary, String, String[])

Cudzysłowuje wszystkie wartości zawierające przecinki, a następnie przecinek łączy wszystkie wartości z dowolnymi istniejącymi wartościami.

GetCommaSeparatedValues(IHeaderDictionary, String)

Pobierz skojarzone wartości z kolekcji rozdzielone na poszczególne wartości. Wartości cytowane nie zostaną podzielone, a cudzysłowy zostaną usunięte.

SetCommaSeparatedValues(IHeaderDictionary, String, String[])

Cudzysłowuje wszystkie wartości zawierające przecinki, a następnie przecinek łączy wszystkie wartości.

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

Dołącza sekwencję wartości do IHeaderDictionaryelementu .

Dotyczy