userver: http::headers Namespace Reference
Loading...
Searching...
No Matches
http::headers Namespace Reference

Detailed Description

Common HTTP headers.

Namespaces

namespace  b3
 B3 tracing Headers.
 
namespace  opentelemetry
 OpenTelemetry tracing Headers.
 

Classes

class  HeaderMap
 Container that maps case-insensitive header name into header value. More...
 
class  PredefinedHeader
 A struct to represent compile-time known header name. More...
 

Typedefs

using HeadersString = utils::SmallString<kTypicalHeadersSize>
 

Variables

constexpr std::size_t kTypicalHeadersSize = 1024
 
Representation Metadata
constexpr PredefinedHeader kContentType {"Content-Type"}
 
constexpr PredefinedHeader kContentEncoding {"Content-Encoding"}
 
constexpr PredefinedHeader kContentLanguage {"Content-Language"}
 
constexpr PredefinedHeader kContentLocation {"Content-Location"}
 
constexpr PredefinedHeader kContentDisposition {"Content-Disposition"}
 
Payload Semantics
constexpr PredefinedHeader kContentLength {"Content-Length"}
 
constexpr PredefinedHeader kContentRange {"Content-Range"}
 
constexpr PredefinedHeader kTrailer {"Trailer"}
 
constexpr PredefinedHeader kTransferEncoding {"Transfer-Encoding"}
 
Request Headers - Controls
constexpr PredefinedHeader kCacheControl {"Cache-Control"}
 
constexpr PredefinedHeader kExpect {"Expect"}
 
constexpr PredefinedHeader kHost {"Host"}
 
constexpr PredefinedHeader kMaxForwards {"Max-Forwards"}
 
constexpr PredefinedHeader kPragma {"Pragma"}
 
constexpr PredefinedHeader kRange {"Range"}
 
constexpr PredefinedHeader kTE {"TE"}
 
Conditionals
constexpr PredefinedHeader kIfMatch {"If-Match"}
 
constexpr PredefinedHeader kIfNoneMatch {"If-None-Match"}
 
constexpr PredefinedHeader kIfModifiedSince {"If-Modified-Since"}
 
constexpr PredefinedHeader kIfUnmodifiedSince {"If-Unmodified-Since"}
 
constexpr PredefinedHeader kIfRange {"If-Range"}
 
Content Negotiation
constexpr PredefinedHeader kAccept {"Accept"}
 
constexpr PredefinedHeader kAcceptCharset {"Accept-Charset"}
 
constexpr PredefinedHeader kAcceptEncoding {"Accept-Encoding"}
 
constexpr PredefinedHeader kAcceptLanguage {"Accept-Language"}
 
Authentication Credentials
constexpr PredefinedHeader kAuthorization {"Authorization"}
 
constexpr PredefinedHeader kProxyAuthorization {"Proxy-Authorization"}
 
constexpr PredefinedHeader kApiKey {"X-YaTaxi-API-Key"}
 
constexpr PredefinedHeader kExternalService {"X-YaTaxi-External-Service"}
 
Request Context
constexpr PredefinedHeader kFrom {"From"}
 
constexpr PredefinedHeader kReferer {"Referer"}
 
constexpr PredefinedHeader kUserAgent {"User-Agent"}
 
constexpr PredefinedHeader kXTaxi {"X-Taxi"}
 
constexpr PredefinedHeader kXRequestedUri {"X-Requested-Uri"}
 
constexpr PredefinedHeader kXRequestApplication {"X-Request-Application"}
 
Control Data
constexpr PredefinedHeader kAge {"Age"}
 
constexpr PredefinedHeader kExpires {"Expires"}
 
constexpr PredefinedHeader kDate {"Date"}
 
constexpr PredefinedHeader kLocation {"Location"}
 
constexpr PredefinedHeader kRetryAfter {"Retry-After"}
 
constexpr PredefinedHeader kVary {"Vary"}
 
constexpr PredefinedHeader kWarning {"Warning"}
 
constexpr PredefinedHeader kAccessControlAllowHeaders
 
Validator Header Fields
constexpr PredefinedHeader kETag {"ETag"}
 
constexpr PredefinedHeader kLastModified {"Last-Modified"}
 
Authentication Challenges
constexpr PredefinedHeader kWWWAuthenticate {"WWW-Authenticate"}
 
constexpr PredefinedHeader kProxyAuthenticate {"Proxy-Authenticate"}
 
Response Context
constexpr PredefinedHeader kAcceptRanges {"Accept-Ranges"}
 
constexpr PredefinedHeader kAllow {"Allow"}
 
constexpr PredefinedHeader kServer {"Server"}
 
Cookie
constexpr PredefinedHeader kSetCookie {"Set-Cookie"}
 
Websockets headers
constexpr PredefinedHeader kWebsocketKey {"Sec-WebSocket-Key"}
 
constexpr PredefinedHeader kWebsocketAccept {"Sec-WebSocket-Accept"}
 
constexpr PredefinedHeader kWebsocketVersion {"Sec-WebSocket-Version"}
 
Extra headers
constexpr PredefinedHeader kConnection {"Connection"}
 
constexpr PredefinedHeader kUpgrade {"Upgrade"}
 
constexpr PredefinedHeader kCookie {"Cookie"}
 
Tracing headers
constexpr PredefinedHeader kXYaRequestId {"X-YaRequestId"}
 
constexpr PredefinedHeader kXYaTraceId {"X-YaTraceId"}
 
constexpr PredefinedHeader kXYaSpanId {"X-YaSpanId"}
 
constexpr PredefinedHeader kXRequestId {"X-RequestId"}
 
constexpr PredefinedHeader kXBackendServer {"X-Backend-Server"}
 
constexpr PredefinedHeader kXTaxiEnvoyProxyDstVhost
 
Baggage header
constexpr PredefinedHeader kXBaggage {"baggage"}
 
Generic Yandex headers
constexpr PredefinedHeader kXYandexUid {"X-Yandex-UID"}
 
constexpr PredefinedHeader kXRemoteIp {"X-Remote-IP"}
 
Generic Yandex/MLU headers
constexpr PredefinedHeader kXYaTaxiAllowAuthRequest
 
constexpr PredefinedHeader kXYaTaxiAllowAuthResponse
 
constexpr PredefinedHeader kXYaTaxiServerHostname
 
constexpr PredefinedHeader kXYaTaxiClientTimeoutMs
 
constexpr PredefinedHeader kXYaTaxiDeadlineExpired
 
constexpr PredefinedHeader kXYaTaxiRatelimitedBy
 
constexpr PredefinedHeader kXYaTaxiRatelimitReason
 

Typedef Documentation

◆ HeadersString

using http::headers::HeadersString = utils::SmallString<kTypicalHeadersSize>

Definition at line 18 of file predefined_header.hpp.

Variable Documentation

◆ kAccept

constexpr PredefinedHeader http::headers::kAccept {"Accept"}
inlineconstexpr

Definition at line 55 of file common_headers.hpp.

◆ kAcceptCharset

constexpr PredefinedHeader http::headers::kAcceptCharset {"Accept-Charset"}
inlineconstexpr

Definition at line 56 of file common_headers.hpp.

◆ kAcceptEncoding

constexpr PredefinedHeader http::headers::kAcceptEncoding {"Accept-Encoding"}
inlineconstexpr

Definition at line 57 of file common_headers.hpp.

◆ kAcceptLanguage

constexpr PredefinedHeader http::headers::kAcceptLanguage {"Accept-Language"}
inlineconstexpr

Definition at line 58 of file common_headers.hpp.

◆ kAcceptRanges

constexpr PredefinedHeader http::headers::kAcceptRanges {"Accept-Ranges"}
inlineconstexpr

Definition at line 108 of file common_headers.hpp.

◆ kAccessControlAllowHeaders

constexpr PredefinedHeader http::headers::kAccessControlAllowHeaders
inlineconstexpr
Initial value:
{
"Access-Control-Allow-Headers"}

Definition at line 90 of file common_headers.hpp.

◆ kAge

constexpr PredefinedHeader http::headers::kAge {"Age"}
inlineconstexpr

Definition at line 83 of file common_headers.hpp.

◆ kAllow

constexpr PredefinedHeader http::headers::kAllow {"Allow"}
inlineconstexpr

Definition at line 109 of file common_headers.hpp.

◆ kApiKey

constexpr PredefinedHeader http::headers::kApiKey {"X-YaTaxi-API-Key"}
inlineconstexpr

Definition at line 65 of file common_headers.hpp.

◆ kAuthorization

constexpr PredefinedHeader http::headers::kAuthorization {"Authorization"}
inlineconstexpr

Definition at line 63 of file common_headers.hpp.

◆ kCacheControl

constexpr PredefinedHeader http::headers::kCacheControl {"Cache-Control"}
inlineconstexpr

Definition at line 35 of file common_headers.hpp.

◆ kConnection

constexpr PredefinedHeader http::headers::kConnection {"Connection"}
inlineconstexpr

Definition at line 127 of file common_headers.hpp.

◆ kContentDisposition

constexpr PredefinedHeader http::headers::kContentDisposition {"Content-Disposition"}
inlineconstexpr

Definition at line 22 of file common_headers.hpp.

◆ kContentEncoding

constexpr PredefinedHeader http::headers::kContentEncoding {"Content-Encoding"}
inlineconstexpr

Definition at line 19 of file common_headers.hpp.

◆ kContentLanguage

constexpr PredefinedHeader http::headers::kContentLanguage {"Content-Language"}
inlineconstexpr

Definition at line 20 of file common_headers.hpp.

◆ kContentLength

constexpr PredefinedHeader http::headers::kContentLength {"Content-Length"}
inlineconstexpr

Definition at line 27 of file common_headers.hpp.

◆ kContentLocation

constexpr PredefinedHeader http::headers::kContentLocation {"Content-Location"}
inlineconstexpr

Definition at line 21 of file common_headers.hpp.

◆ kContentRange

constexpr PredefinedHeader http::headers::kContentRange {"Content-Range"}
inlineconstexpr

Definition at line 28 of file common_headers.hpp.

◆ kContentType

constexpr PredefinedHeader http::headers::kContentType {"Content-Type"}
inlineconstexpr

Definition at line 18 of file common_headers.hpp.

◆ kCookie

constexpr PredefinedHeader http::headers::kCookie {"Cookie"}
inlineconstexpr

Definition at line 129 of file common_headers.hpp.

◆ kDate

constexpr PredefinedHeader http::headers::kDate {"Date"}
inlineconstexpr

Definition at line 85 of file common_headers.hpp.

◆ kETag

constexpr PredefinedHeader http::headers::kETag {"ETag"}
inlineconstexpr

Definition at line 96 of file common_headers.hpp.

◆ kExpect

constexpr PredefinedHeader http::headers::kExpect {"Expect"}
inlineconstexpr

Definition at line 36 of file common_headers.hpp.

◆ kExpires

constexpr PredefinedHeader http::headers::kExpires {"Expires"}
inlineconstexpr

Definition at line 84 of file common_headers.hpp.

◆ kExternalService

constexpr PredefinedHeader http::headers::kExternalService {"X-YaTaxi-External-Service"}
inlineconstexpr

Definition at line 66 of file common_headers.hpp.

◆ kFrom

constexpr PredefinedHeader http::headers::kFrom {"From"}
inlineconstexpr

Definition at line 71 of file common_headers.hpp.

◆ kHost

constexpr PredefinedHeader http::headers::kHost {"Host"}
inlineconstexpr

Definition at line 37 of file common_headers.hpp.

◆ kIfMatch

constexpr PredefinedHeader http::headers::kIfMatch {"If-Match"}
inlineconstexpr

Definition at line 46 of file common_headers.hpp.

◆ kIfModifiedSince

constexpr PredefinedHeader http::headers::kIfModifiedSince {"If-Modified-Since"}
inlineconstexpr

Definition at line 48 of file common_headers.hpp.

◆ kIfNoneMatch

constexpr PredefinedHeader http::headers::kIfNoneMatch {"If-None-Match"}
inlineconstexpr

Definition at line 47 of file common_headers.hpp.

◆ kIfRange

constexpr PredefinedHeader http::headers::kIfRange {"If-Range"}
inlineconstexpr

Definition at line 50 of file common_headers.hpp.

◆ kIfUnmodifiedSince

constexpr PredefinedHeader http::headers::kIfUnmodifiedSince {"If-Unmodified-Since"}
inlineconstexpr

Definition at line 49 of file common_headers.hpp.

◆ kLastModified

constexpr PredefinedHeader http::headers::kLastModified {"Last-Modified"}
inlineconstexpr

Definition at line 97 of file common_headers.hpp.

◆ kLocation

constexpr PredefinedHeader http::headers::kLocation {"Location"}
inlineconstexpr

Definition at line 86 of file common_headers.hpp.

◆ kMaxForwards

constexpr PredefinedHeader http::headers::kMaxForwards {"Max-Forwards"}
inlineconstexpr

Definition at line 38 of file common_headers.hpp.

◆ kPragma

constexpr PredefinedHeader http::headers::kPragma {"Pragma"}
inlineconstexpr

Definition at line 39 of file common_headers.hpp.

◆ kProxyAuthenticate

constexpr PredefinedHeader http::headers::kProxyAuthenticate {"Proxy-Authenticate"}
inlineconstexpr

Definition at line 103 of file common_headers.hpp.

◆ kProxyAuthorization

constexpr PredefinedHeader http::headers::kProxyAuthorization {"Proxy-Authorization"}
inlineconstexpr

Definition at line 64 of file common_headers.hpp.

◆ kRange

constexpr PredefinedHeader http::headers::kRange {"Range"}
inlineconstexpr

Definition at line 40 of file common_headers.hpp.

◆ kReferer

constexpr PredefinedHeader http::headers::kReferer {"Referer"}
inlineconstexpr

Definition at line 72 of file common_headers.hpp.

◆ kRetryAfter

constexpr PredefinedHeader http::headers::kRetryAfter {"Retry-After"}
inlineconstexpr

Definition at line 87 of file common_headers.hpp.

◆ kServer

constexpr PredefinedHeader http::headers::kServer {"Server"}
inlineconstexpr

Definition at line 110 of file common_headers.hpp.

◆ kSetCookie

constexpr PredefinedHeader http::headers::kSetCookie {"Set-Cookie"}
inlineconstexpr

Definition at line 115 of file common_headers.hpp.

◆ kTE

constexpr PredefinedHeader http::headers::kTE {"TE"}
inlineconstexpr

Definition at line 41 of file common_headers.hpp.

◆ kTrailer

constexpr PredefinedHeader http::headers::kTrailer {"Trailer"}
inlineconstexpr

Definition at line 29 of file common_headers.hpp.

◆ kTransferEncoding

constexpr PredefinedHeader http::headers::kTransferEncoding {"Transfer-Encoding"}
inlineconstexpr

Definition at line 30 of file common_headers.hpp.

◆ kTypicalHeadersSize

constexpr std::size_t http::headers::kTypicalHeadersSize = 1024
inlineconstexpr

Definition at line 17 of file predefined_header.hpp.

◆ kUpgrade

constexpr PredefinedHeader http::headers::kUpgrade {"Upgrade"}
inlineconstexpr

Definition at line 128 of file common_headers.hpp.

◆ kUserAgent

constexpr PredefinedHeader http::headers::kUserAgent {"User-Agent"}
inlineconstexpr

Definition at line 73 of file common_headers.hpp.

◆ kVary

constexpr PredefinedHeader http::headers::kVary {"Vary"}
inlineconstexpr

Definition at line 88 of file common_headers.hpp.

◆ kWarning

constexpr PredefinedHeader http::headers::kWarning {"Warning"}
inlineconstexpr

Definition at line 89 of file common_headers.hpp.

◆ kWebsocketAccept

constexpr PredefinedHeader http::headers::kWebsocketAccept {"Sec-WebSocket-Accept"}
inlineconstexpr

Definition at line 121 of file common_headers.hpp.

◆ kWebsocketKey

constexpr PredefinedHeader http::headers::kWebsocketKey {"Sec-WebSocket-Key"}
inlineconstexpr

Definition at line 120 of file common_headers.hpp.

◆ kWebsocketVersion

constexpr PredefinedHeader http::headers::kWebsocketVersion {"Sec-WebSocket-Version"}
inlineconstexpr

Definition at line 122 of file common_headers.hpp.

◆ kWWWAuthenticate

constexpr PredefinedHeader http::headers::kWWWAuthenticate {"WWW-Authenticate"}
inlineconstexpr

Definition at line 102 of file common_headers.hpp.

◆ kXBackendServer

constexpr PredefinedHeader http::headers::kXBackendServer {"X-Backend-Server"}
inlineconstexpr

Definition at line 138 of file common_headers.hpp.

◆ kXBaggage

constexpr PredefinedHeader http::headers::kXBaggage {"baggage"}
inlineconstexpr

Definition at line 160 of file common_headers.hpp.

◆ kXRemoteIp

constexpr PredefinedHeader http::headers::kXRemoteIp {"X-Remote-IP"}
inlineconstexpr

Definition at line 168 of file common_headers.hpp.

◆ kXRequestApplication

constexpr PredefinedHeader http::headers::kXRequestApplication {"X-Request-Application"}
inlineconstexpr

Definition at line 76 of file common_headers.hpp.

◆ kXRequestedUri

constexpr PredefinedHeader http::headers::kXRequestedUri {"X-Requested-Uri"}
inlineconstexpr

Definition at line 75 of file common_headers.hpp.

◆ kXRequestId

constexpr PredefinedHeader http::headers::kXRequestId {"X-RequestId"}
inlineconstexpr

Definition at line 137 of file common_headers.hpp.

◆ kXTaxi

constexpr PredefinedHeader http::headers::kXTaxi {"X-Taxi"}
inlineconstexpr

Definition at line 74 of file common_headers.hpp.

◆ kXTaxiEnvoyProxyDstVhost

constexpr PredefinedHeader http::headers::kXTaxiEnvoyProxyDstVhost
inlineconstexpr
Initial value:
{
"X-Taxi-EnvoyProxy-DstVhost"}

Definition at line 139 of file common_headers.hpp.

◆ kXYandexUid

constexpr PredefinedHeader http::headers::kXYandexUid {"X-Yandex-UID"}
inlineconstexpr

Definition at line 165 of file common_headers.hpp.

◆ kXYaRequestId

constexpr PredefinedHeader http::headers::kXYaRequestId {"X-YaRequestId"}
inlineconstexpr

Definition at line 134 of file common_headers.hpp.

◆ kXYaSpanId

constexpr PredefinedHeader http::headers::kXYaSpanId {"X-YaSpanId"}
inlineconstexpr

Definition at line 136 of file common_headers.hpp.

◆ kXYaTaxiAllowAuthRequest

constexpr PredefinedHeader http::headers::kXYaTaxiAllowAuthRequest
inlineconstexpr
Initial value:
{
"X-YaTaxi-Allow-Auth-Request"}

Definition at line 173 of file common_headers.hpp.

◆ kXYaTaxiAllowAuthResponse

constexpr PredefinedHeader http::headers::kXYaTaxiAllowAuthResponse
inlineconstexpr
Initial value:
{
"X-YaTaxi-Allow-Auth-Response"}

Definition at line 175 of file common_headers.hpp.

◆ kXYaTaxiClientTimeoutMs

constexpr PredefinedHeader http::headers::kXYaTaxiClientTimeoutMs
inlineconstexpr
Initial value:
{
"X-YaTaxi-Client-TimeoutMs"}

Definition at line 179 of file common_headers.hpp.

◆ kXYaTaxiDeadlineExpired

constexpr PredefinedHeader http::headers::kXYaTaxiDeadlineExpired
inlineconstexpr
Initial value:
{
"X-YaTaxi-Deadline-Expired"}

Definition at line 181 of file common_headers.hpp.

◆ kXYaTaxiRatelimitedBy

constexpr PredefinedHeader http::headers::kXYaTaxiRatelimitedBy
inlineconstexpr
Initial value:
{
"X-YaTaxi-Ratelimited-By"}

Definition at line 183 of file common_headers.hpp.

◆ kXYaTaxiRatelimitReason

constexpr PredefinedHeader http::headers::kXYaTaxiRatelimitReason
inlineconstexpr
Initial value:
{
"X-YaTaxi-Ratelimit-Reason"}

Definition at line 185 of file common_headers.hpp.

◆ kXYaTaxiServerHostname

constexpr PredefinedHeader http::headers::kXYaTaxiServerHostname
inlineconstexpr
Initial value:
{
"X-YaTaxi-Server-Hostname"}

Definition at line 177 of file common_headers.hpp.

◆ kXYaTraceId

constexpr PredefinedHeader http::headers::kXYaTraceId {"X-YaTraceId"}
inlineconstexpr

Definition at line 135 of file common_headers.hpp.