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 {"Access-Control-Allow-Headers"}
 
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 {"X-Taxi-EnvoyProxy-DstVhost"}
 
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 {"X-YaTaxi-Allow-Auth-Request"}
 
constexpr PredefinedHeader kXYaTaxiAllowAuthResponse {"X-YaTaxi-Allow-Auth-Response"}
 
constexpr PredefinedHeader kXYaTaxiServerHostname {"X-YaTaxi-Server-Hostname"}
 
constexpr PredefinedHeader kXYaTaxiClientTimeoutMs {"X-YaTaxi-Client-TimeoutMs"}
 
constexpr PredefinedHeader kXYaTaxiDeadlineExpired {"X-YaTaxi-Deadline-Expired"}
 
constexpr PredefinedHeader kXYaTaxiRatelimitedBy {"X-YaTaxi-Ratelimited-By"}
 
constexpr PredefinedHeader kXYaTaxiRatelimitReason {"X-YaTaxi-Ratelimit-Reason"}
 

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 107 of file common_headers.hpp.

◆ kAccessControlAllowHeaders

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

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 108 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 126 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 128 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 95 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 96 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 102 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 109 of file common_headers.hpp.

◆ kSetCookie

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

Definition at line 114 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 127 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 120 of file common_headers.hpp.

◆ kWebsocketKey

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

Definition at line 119 of file common_headers.hpp.

◆ kWebsocketVersion

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

Definition at line 121 of file common_headers.hpp.

◆ kWWWAuthenticate

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

Definition at line 101 of file common_headers.hpp.

◆ kXBackendServer

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

Definition at line 137 of file common_headers.hpp.

◆ kXBaggage

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

Definition at line 158 of file common_headers.hpp.

◆ kXRemoteIp

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

Definition at line 166 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 136 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 {"X-Taxi-EnvoyProxy-DstVhost"}
inlineconstexpr

Definition at line 138 of file common_headers.hpp.

◆ kXYandexUid

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

Definition at line 163 of file common_headers.hpp.

◆ kXYaRequestId

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

Definition at line 133 of file common_headers.hpp.

◆ kXYaSpanId

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

Definition at line 135 of file common_headers.hpp.

◆ kXYaTaxiAllowAuthRequest

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

Definition at line 171 of file common_headers.hpp.

◆ kXYaTaxiAllowAuthResponse

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

Definition at line 172 of file common_headers.hpp.

◆ kXYaTaxiClientTimeoutMs

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

Definition at line 174 of file common_headers.hpp.

◆ kXYaTaxiDeadlineExpired

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

Definition at line 175 of file common_headers.hpp.

◆ kXYaTaxiRatelimitedBy

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

Definition at line 176 of file common_headers.hpp.

◆ kXYaTaxiRatelimitReason

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

Definition at line 177 of file common_headers.hpp.

◆ kXYaTaxiServerHostname

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

Definition at line 173 of file common_headers.hpp.

◆ kXYaTraceId

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

Definition at line 134 of file common_headers.hpp.