[go: up one dir, main page]

Module headers

Module headers 

Source
Expand description

HTTP headers.

Modules§

content_type
Constants related to the Content-Type header

Structs§

HeaderName
A header name.
HeaderValue
A header value.
Headers
A collection of headers.

Constants§

ACCEPT
“accept” HTTP header. See https://www.rfc-editor.org/rfc/rfc9110#section-12.5.1.
ACCEPT_CHARSET
“accept-charset” HTTP header. See https://www.rfc-editor.org/rfc/rfc9110#section-12.5.2.
AUTHORIZATION
“authorization” HTTP header. See https://www.rfc-editor.org/rfc/rfc9110#section-11.6.2.
CLIENT_REQUEST_ID
x-ms-client-request-id header. See https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#distributed-tracing--telemetry for more details.
CONTENT_LENGTH
“content-length” HTTP header. See https://www.rfc-editor.org/rfc/rfc9110#section-8.6.
CONTENT_TYPE
“content-type” HTTP header. See https://www.rfc-editor.org/rfc/rfc9110#section-8.3
ERROR_CODE
x-ms-error-code header. See https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors for more details.
ETAG
“etag” HTTP header. See https://www.rfc-editor.org/rfc/rfc9110#section-11.7.
IF_MATCH
“if-match” HTTP header. See https://www.rfc-editor.org/rfc/rfc7232#section-3.1.
LAST_MODIFIED
“last-modified” HTTP header. See https://www.rfc-editor.org/rfc/rfc9110#section-13.1.1.
MS_DATE
x-ms-date header.
PREFER
“prefer” HTTP header. See https://www.rfc-editor.org/rfc/rfc7240.
RETRY_AFTER
“retry-after” HTTP header. See https://www.rfc-editor.org/rfc/rfc9110#section-10.2.3.
RETRY_AFTER_MS
retry-after-ms header.
USER_AGENT
“user-agent” HTTP header. See https://www.rfc-editor.org/rfc/rfc9110#section-10.1.5.
VERSION
x-ms-version header.
X_MS_RETRY_AFTER_MS
x-ms-retry-after-ms header.

Statics§

DEFAULT_ALLOWED_HEADER_NAMES
Default set of allowed headers. Headers not in this list will be redacted.

Traits§

AsHeaders
A trait for converting a type into request headers.
FromHeaders
Extract a value from the Headers collection.
Header
View a type as an HTTP header.