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.

#include <userver/http/predefined_header.hpp>
+ This graph shows which files directly or indirectly include this file:

Namespaces

namespace  http
 HTTP helpers.
 
namespace  http::headers
 Common HTTP headers.
 
namespace  http::headers::b3
 B3 tracing Headers.
 
namespace  http::headers::opentelemetry
 OpenTelemetry tracing Headers.
 

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::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::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::kXYaTaxiRatelimitedBy {"X-YaTaxi-Ratelimited-By"}
 
constexpr PredefinedHeader http::headers::kXYaTaxiRatelimitReason {"X-YaTaxi-Ratelimit-Reason"}
 

Variable Documentation

◆ kAuthority

constexpr PredefinedHeader http::headers::k2::kAuthority {":authority"}
inlineconstexpr

Definition at line 192 of file common_headers.hpp.

◆ kCC

constexpr std::string_view http::headers::ratelimit_reason::kCC {"congestion-control"}
inlineconstexpr

Definition at line 180 of file common_headers.hpp.

◆ kGlobal

constexpr std::string_view http::headers::ratelimit_reason::kGlobal {"global-ratelimit"}
inlineconstexpr

Definition at line 183 of file common_headers.hpp.

◆ kHttp2SettingsHeader

constexpr PredefinedHeader http::headers::k2::kHttp2SettingsHeader {"HTTP2-Settings"}
inlineconstexpr

Definition at line 189 of file common_headers.hpp.

◆ kInFlight

constexpr std::string_view http::headers::ratelimit_reason::kInFlight {"max-requests-in-flight"}
inlineconstexpr

Definition at line 184 of file common_headers.hpp.

◆ kMaxPendingResponses

constexpr std::string_view http::headers::ratelimit_reason::kMaxPendingResponses {"too-many-pending-responses"}
inlineconstexpr

Definition at line 182 of file common_headers.hpp.

◆ kMaxResponseSizeInFlight

constexpr std::string_view http::headers::ratelimit_reason::kMaxResponseSizeInFlight {"max-response-size-in-flight"}
inlineconstexpr

Definition at line 181 of file common_headers.hpp.

◆ kMethod

constexpr PredefinedHeader http::headers::k2::kMethod {":method"}
inlineconstexpr

Definition at line 190 of file common_headers.hpp.

◆ kPath

constexpr PredefinedHeader http::headers::k2::kPath {":path"}
inlineconstexpr

Definition at line 193 of file common_headers.hpp.

◆ kScheme

constexpr PredefinedHeader http::headers::k2::kScheme {":scheme"}
inlineconstexpr

Definition at line 191 of file common_headers.hpp.

◆ kStatus

constexpr PredefinedHeader http::headers::k2::kStatus {":status"}
inlineconstexpr

Definition at line 194 of file common_headers.hpp.