userver: userver/http/common_headers.hpp File Reference
Loading...
Searching...
No Matches
common_headers.hpp File Reference

Detailed Description

Common HTTP header names.

Definition in file common_headers.hpp.

Go to the source code of this file.

This graph shows which files directly or indirectly include this file:

Namespaces

namespace  http
 HTTP primitives: status codes, URLs, headers, and parsing helpers.
namespace  http::headers
 Predefined HTTP header names and related helpers.
namespace  http::headers::b3
 B3 distributed tracing header name constants.
namespace  http::headers::opentelemetry
 W3C Trace Context / OpenTelemetry-related header names.
namespace  http::headers::ratelimit_reason
 Rate limiting metadata header name constants.
namespace  http::headers::k2
 K2 header name constants.

Variables

constexpr PredefinedHeader http::headers::b3::kTraceId {"X-B3-TraceId"}
constexpr PredefinedHeader http::headers::b3::kSpanId {"X-B3-SpanId"}
constexpr PredefinedHeader http::headers::b3::kSampled {"X-B3-Sampled"}
constexpr PredefinedHeader http::headers::b3::kParentSpanId {"X-B3-ParentSpanId"}
constexpr PredefinedHeader http::headers::opentelemetry::kTraceParent {"traceparent"}
constexpr PredefinedHeader http::headers::opentelemetry::kTraceState {"tracestate"}
constexpr std::string_view http::headers::ratelimit_reason::kCC {"congestion-control"}
constexpr std::string_view http::headers::ratelimit_reason::kMaxResponseSizeInFlight {"max-response-size-in-flight"}
constexpr std::string_view http::headers::ratelimit_reason::kMaxPendingResponses {"too-many-pending-responses"}
constexpr std::string_view http::headers::ratelimit_reason::kGlobal {"global-ratelimit"}
constexpr std::string_view http::headers::ratelimit_reason::kInFlight {"max-requests-in-flight"}
constexpr PredefinedHeader http::headers::k2::kHttp2SettingsHeader {"HTTP2-Settings"}
constexpr PredefinedHeader http::headers::k2::kMethod {":method"}
constexpr PredefinedHeader http::headers::k2::kScheme {":scheme"}
constexpr PredefinedHeader http::headers::k2::kAuthority {":authority"}
constexpr PredefinedHeader http::headers::k2::kPath {":path"}
constexpr PredefinedHeader http::headers::k2::kStatus {":status"}
Representation Metadata
constexpr PredefinedHeader http::headers::kContentType {"Content-Type"}
constexpr PredefinedHeader http::headers::kContentEncoding {"Content-Encoding"}
constexpr PredefinedHeader http::headers::kContentLanguage {"Content-Language"}
constexpr PredefinedHeader http::headers::kContentLocation {"Content-Location"}
constexpr PredefinedHeader http::headers::kContentDisposition {"Content-Disposition"}
Payload Semantics
constexpr PredefinedHeader http::headers::kContentLength {"Content-Length"}
constexpr PredefinedHeader http::headers::kContentRange {"Content-Range"}
constexpr PredefinedHeader http::headers::kTrailer {"Trailer"}
constexpr PredefinedHeader http::headers::kTransferEncoding {"Transfer-Encoding"}
Request Headers - Controls
constexpr PredefinedHeader http::headers::kCacheControl {"Cache-Control"}
constexpr PredefinedHeader http::headers::kExpect {"Expect"}
constexpr PredefinedHeader http::headers::kHost {"Host"}
constexpr PredefinedHeader http::headers::kMaxForwards {"Max-Forwards"}
constexpr PredefinedHeader http::headers::kPragma {"Pragma"}
constexpr PredefinedHeader http::headers::kRange {"Range"}
constexpr PredefinedHeader http::headers::kTE {"TE"}
Conditionals
constexpr PredefinedHeader http::headers::kIfMatch {"If-Match"}
constexpr PredefinedHeader http::headers::kIfNoneMatch {"If-None-Match"}
constexpr PredefinedHeader http::headers::kIfModifiedSince {"If-Modified-Since"}
constexpr PredefinedHeader http::headers::kIfUnmodifiedSince {"If-Unmodified-Since"}
constexpr PredefinedHeader http::headers::kIfRange {"If-Range"}
Content Negotiation
constexpr PredefinedHeader http::headers::kAccept {"Accept"}
constexpr PredefinedHeader http::headers::kAcceptCharset {"Accept-Charset"}
constexpr PredefinedHeader http::headers::kAcceptEncoding {"Accept-Encoding"}
constexpr PredefinedHeader http::headers::kAcceptLanguage {"Accept-Language"}
Authentication Credentials
constexpr PredefinedHeader http::headers::kAuthorization {"Authorization"}
constexpr PredefinedHeader http::headers::kProxyAuthorization {"Proxy-Authorization"}
constexpr PredefinedHeader http::headers::kApiKey {"X-YaTaxi-API-Key"}
constexpr PredefinedHeader http::headers::kExternalService {"X-YaTaxi-External-Service"}
Request Context
constexpr PredefinedHeader http::headers::kFrom {"From"}
constexpr PredefinedHeader http::headers::kReferer {"Referer"}
constexpr PredefinedHeader http::headers::kUserAgent {"User-Agent"}
constexpr PredefinedHeader http::headers::kXTaxi {"X-Taxi"}
constexpr PredefinedHeader http::headers::kXRequestedUri {"X-Requested-Uri"}
constexpr PredefinedHeader http::headers::kXRequestApplication {"X-Request-Application"}
Control Data
constexpr PredefinedHeader http::headers::kAge {"Age"}
constexpr PredefinedHeader http::headers::kExpires {"Expires"}
constexpr PredefinedHeader http::headers::kDate {"Date"}
constexpr PredefinedHeader http::headers::kLocation {"Location"}
constexpr PredefinedHeader http::headers::kRetryAfter {"Retry-After"}
constexpr PredefinedHeader http::headers::kVary {"Vary"}
constexpr PredefinedHeader http::headers::kWarning {"Warning"}
constexpr PredefinedHeader http::headers::kAccessControlAllowHeaders {"Access-Control-Allow-Headers"}
Validator Header Fields
constexpr PredefinedHeader http::headers::kETag {"ETag"}
constexpr PredefinedHeader http::headers::kLastModified {"Last-Modified"}
Authentication Challenges
constexpr PredefinedHeader http::headers::kWWWAuthenticate {"WWW-Authenticate"}
constexpr PredefinedHeader http::headers::kProxyAuthenticate {"Proxy-Authenticate"}
Response Context
constexpr PredefinedHeader http::headers::kAcceptRanges {"Accept-Ranges"}
constexpr PredefinedHeader http::headers::kAllow {"Allow"}
constexpr PredefinedHeader http::headers::kServer {"Server"}
Cookie
constexpr PredefinedHeader http::headers::kSetCookie {"Set-Cookie"}
Websockets headers
constexpr PredefinedHeader http::headers::kWebsocketKey {"Sec-WebSocket-Key"}
constexpr PredefinedHeader http::headers::kWebsocketAccept {"Sec-WebSocket-Accept"}
constexpr PredefinedHeader http::headers::kWebsocketProtocol {"Sec-WebSocket-Protocol"}
constexpr PredefinedHeader http::headers::kWebsocketVersion {"Sec-WebSocket-Version"}
Extra headers
constexpr PredefinedHeader http::headers::kConnection {"Connection"}
constexpr PredefinedHeader http::headers::kUpgrade {"Upgrade"}
constexpr PredefinedHeader http::headers::kCookie {"Cookie"}
Tracing headers
constexpr PredefinedHeader http::headers::kXYaRequestId {"X-YaRequestId"}
constexpr PredefinedHeader http::headers::kXYaTraceId {"X-YaTraceId"}
constexpr PredefinedHeader http::headers::kXYaSpanId {"X-YaSpanId"}
constexpr PredefinedHeader http::headers::kXRequestId {"X-RequestId"}
constexpr PredefinedHeader http::headers::kXBackendServer {"X-Backend-Server"}
constexpr PredefinedHeader http::headers::kXTaxiEnvoyProxyDstVhost {"X-Taxi-EnvoyProxy-DstVhost"}
Baggage header
constexpr PredefinedHeader http::headers::kXBaggage {"baggage"}
Generic Yandex headers
constexpr PredefinedHeader http::headers::kXYandexUid {"X-Yandex-UID"}
constexpr PredefinedHeader http::headers::kXYandexLogin {"X-Yandex-Login"}
constexpr PredefinedHeader http::headers::kXRemoteIp {"X-Remote-IP"}
Generic Yandex/MLU headers
constexpr PredefinedHeader http::headers::kXYaTaxiAllowAuthRequest {"X-YaTaxi-Allow-Auth-Request"}
constexpr PredefinedHeader http::headers::kXYaTaxiAllowAuthResponse {"X-YaTaxi-Allow-Auth-Response"}
constexpr PredefinedHeader http::headers::kXYaTaxiServerHostname {"X-YaTaxi-Server-Hostname"}
constexpr PredefinedHeader http::headers::kXYaTaxiClientTimeoutMs {"X-YaTaxi-Client-TimeoutMs"}
constexpr PredefinedHeader http::headers::kXYaTaxiDeadlineExpired {"X-YaTaxi-Deadline-Expired"}
constexpr PredefinedHeader http::headers::kXRequestDeadline {"X-Request-Deadline"}
constexpr PredefinedHeader http::headers::kXYaTaxiRatelimitedBy {"X-YaTaxi-Ratelimited-By"}
constexpr PredefinedHeader http::headers::kXYaTaxiRatelimitReason {"X-YaTaxi-Ratelimit-Reason"}