3#include <userver/http/predefined_header.hpp>
18inline constexpr PredefinedHeader kContentType{
"Content-Type"};
19inline constexpr PredefinedHeader kContentEncoding{
"Content-Encoding"};
20inline constexpr PredefinedHeader kContentLanguage{
"Content-Language"};
21inline constexpr PredefinedHeader kContentLocation{
"Content-Location"};
22inline constexpr PredefinedHeader kContentDisposition{
"Content-Disposition"};
27inline constexpr PredefinedHeader kContentLength{
"Content-Length"};
28inline constexpr PredefinedHeader kContentRange{
"Content-Range"};
29inline constexpr PredefinedHeader kTrailer{
"Trailer"};
30inline constexpr PredefinedHeader kTransferEncoding{
"Transfer-Encoding"};
35inline constexpr PredefinedHeader kCacheControl{
"Cache-Control"};
36inline constexpr PredefinedHeader kExpect{
"Expect"};
37inline constexpr PredefinedHeader kHost{
"Host"};
38inline constexpr PredefinedHeader kMaxForwards{
"Max-Forwards"};
39inline constexpr PredefinedHeader kPragma{
"Pragma"};
40inline constexpr PredefinedHeader kRange{
"Range"};
41inline constexpr PredefinedHeader kTE{
"TE"};
46inline constexpr PredefinedHeader kIfMatch{
"If-Match"};
47inline constexpr PredefinedHeader kIfNoneMatch{
"If-None-Match"};
48inline constexpr PredefinedHeader kIfModifiedSince{
"If-Modified-Since"};
49inline constexpr PredefinedHeader kIfUnmodifiedSince{
"If-Unmodified-Since"};
50inline constexpr PredefinedHeader kIfRange{
"If-Range"};
55inline constexpr PredefinedHeader kAccept{
"Accept"};
56inline constexpr PredefinedHeader kAcceptCharset{
"Accept-Charset"};
57inline constexpr PredefinedHeader kAcceptEncoding{
"Accept-Encoding"};
58inline constexpr PredefinedHeader kAcceptLanguage{
"Accept-Language"};
63inline constexpr PredefinedHeader kAuthorization{
"Authorization"};
64inline constexpr PredefinedHeader kProxyAuthorization{
"Proxy-Authorization"};
65inline constexpr PredefinedHeader kApiKey{
"X-YaTaxi-API-Key"};
66inline constexpr PredefinedHeader kExternalService{
"X-YaTaxi-External-Service"};
71inline constexpr PredefinedHeader kFrom{
"From"};
72inline constexpr PredefinedHeader kReferer{
"Referer"};
73inline constexpr PredefinedHeader kUserAgent{
"User-Agent"};
74inline constexpr PredefinedHeader kXTaxi{
"X-Taxi"};
75inline constexpr PredefinedHeader kXRequestedUri{
"X-Requested-Uri"};
76inline constexpr PredefinedHeader kXRequestApplication{
"X-Request-Application"};
83inline constexpr PredefinedHeader kAge{
"Age"};
84inline constexpr PredefinedHeader kExpires{
"Expires"};
85inline constexpr PredefinedHeader kDate{
"Date"};
86inline constexpr PredefinedHeader kLocation{
"Location"};
87inline constexpr PredefinedHeader kRetryAfter{
"Retry-After"};
88inline constexpr PredefinedHeader kVary{
"Vary"};
89inline constexpr PredefinedHeader kWarning{
"Warning"};
90inline constexpr PredefinedHeader kAccessControlAllowHeaders{
"Access-Control-Allow-Headers"};
95inline constexpr PredefinedHeader kETag{
"ETag"};
96inline constexpr PredefinedHeader kLastModified{
"Last-Modified"};
101inline constexpr PredefinedHeader kWWWAuthenticate{
"WWW-Authenticate"};
102inline constexpr PredefinedHeader kProxyAuthenticate{
"Proxy-Authenticate"};
107inline constexpr PredefinedHeader kAcceptRanges{
"Accept-Ranges"};
108inline constexpr PredefinedHeader kAllow{
"Allow"};
109inline constexpr PredefinedHeader kServer{
"Server"};
114inline constexpr PredefinedHeader kSetCookie{
"Set-Cookie"};
119inline constexpr PredefinedHeader kWebsocketKey{
"Sec-WebSocket-Key"};
120inline constexpr PredefinedHeader kWebsocketAccept{
"Sec-WebSocket-Accept"};
121inline constexpr PredefinedHeader kWebsocketVersion{
"Sec-WebSocket-Version"};
126inline constexpr PredefinedHeader kConnection{
"Connection"};
127inline constexpr PredefinedHeader kUpgrade{
"Upgrade"};
128inline constexpr PredefinedHeader kCookie{
"Cookie"};
133inline constexpr PredefinedHeader kXYaRequestId{
"X-YaRequestId"};
134inline constexpr PredefinedHeader kXYaTraceId{
"X-YaTraceId"};
135inline constexpr PredefinedHeader kXYaSpanId{
"X-YaSpanId"};
136inline constexpr PredefinedHeader kXRequestId{
"X-RequestId"};
137inline constexpr PredefinedHeader kXBackendServer{
"X-Backend-Server"};
138inline constexpr PredefinedHeader kXTaxiEnvoyProxyDstVhost{
"X-Taxi-EnvoyProxy-DstVhost"};
142inline constexpr PredefinedHeader kTraceId{
"X-B3-TraceId"};
143inline constexpr PredefinedHeader kSpanId{
"X-B3-SpanId"};
144inline constexpr PredefinedHeader kSampled{
"X-B3-Sampled"};
145inline constexpr PredefinedHeader kParentSpanId{
"X-B3-ParentSpanId"};
150inline constexpr PredefinedHeader kTraceParent{
"traceparent"};
151inline constexpr PredefinedHeader kTraceState{
"tracestate"};
158inline constexpr PredefinedHeader kXBaggage{
"baggage"};
163inline constexpr PredefinedHeader kXYandexUid{
"X-Yandex-UID"};
166inline constexpr PredefinedHeader kXRemoteIp{
"X-Remote-IP"};
171inline constexpr PredefinedHeader kXYaTaxiAllowAuthRequest{
"X-YaTaxi-Allow-Auth-Request"};
172inline constexpr PredefinedHeader kXYaTaxiAllowAuthResponse{
"X-YaTaxi-Allow-Auth-Response"};
173inline constexpr PredefinedHeader kXYaTaxiServerHostname{
"X-YaTaxi-Server-Hostname"};
174inline constexpr PredefinedHeader kXYaTaxiClientTimeoutMs{
"X-YaTaxi-Client-TimeoutMs"};
175inline constexpr PredefinedHeader kXYaTaxiDeadlineExpired{
"X-YaTaxi-Deadline-Expired"};
176inline constexpr PredefinedHeader kXYaTaxiRatelimitedBy{
"X-YaTaxi-Ratelimited-By"};
177inline constexpr PredefinedHeader kXYaTaxiRatelimitReason{
"X-YaTaxi-Ratelimit-Reason"};
179namespace ratelimit_reason {
180inline constexpr std::string_view kCC{
"congestion-control"};
181inline constexpr std::string_view kMaxResponseSizeInFlight{
"max-response-size-in-flight"};
182inline constexpr std::string_view kMaxPendingResponses{
"too-many-pending-responses"};
183inline constexpr std::string_view kGlobal{
"global-ratelimit"};
184inline constexpr std::string_view kInFlight{
"max-requests-in-flight"};
189inline constexpr PredefinedHeader kHttp2SettingsHeader{
"HTTP2-Settings"};
190inline constexpr PredefinedHeader kMethod{
":method"};
191inline constexpr PredefinedHeader kScheme{
":scheme"};
192inline constexpr PredefinedHeader kAuthority{
":authority"};
193inline constexpr PredefinedHeader kPath{
":path"};
194inline constexpr PredefinedHeader kStatus{
":status"};