userver: userver/http/common_headers.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
common_headers.hpp File Reference

Common HTTP header names. More...

#include <userver/http/predefined_header.hpp>
+ Include dependency graph for common_headers.hpp:

Go to the source code of this file.

Namespaces

namespace  http
 HTTP helpers.
 
namespace  http::headers
 Common HTTP headers.
 

Variables

constexpr std::string_view http::headers::ratelimit_reason::kCC {"congestion-control"}
 
constexpr std::string_view http::headers::ratelimit_reason::kMaxResponseSizeInFlight
 
constexpr std::string_view http::headers::ratelimit_reason::kMaxPendingResponses
 
constexpr std::string_view http::headers::ratelimit_reason::kGlobal {"global-ratelimit"}
 
constexpr std::string_view http::headers::ratelimit_reason::kInFlight {"max-requests-in-flight"}
 
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
 
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
 
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
 
constexpr PredefinedHeader http::headers::kXYaTaxiAllowAuthResponse
 
constexpr PredefinedHeader http::headers::kXYaTaxiServerHostname
 
constexpr PredefinedHeader http::headers::kXYaTaxiClientTimeoutMs
 
constexpr PredefinedHeader http::headers::kXYaTaxiDeadlineExpired
 
constexpr PredefinedHeader http::headers::kXYaTaxiRatelimitedBy
 
constexpr PredefinedHeader http::headers::kXYaTaxiRatelimitReason
 

Detailed Description

Common HTTP header names.

Definition in file common_headers.hpp.

Variable Documentation

◆ kCC

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

Definition at line 174 of file common_headers.hpp.

◆ kGlobal

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

Definition at line 179 of file common_headers.hpp.

◆ kInFlight

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

Definition at line 180 of file common_headers.hpp.

◆ kMaxPendingResponses

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

Definition at line 177 of file common_headers.hpp.

◆ kMaxResponseSizeInFlight

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

Definition at line 175 of file common_headers.hpp.