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{
91 "Access-Control-Allow-Headers"};
96inline constexpr PredefinedHeader kETag{
"ETag"};
97inline constexpr PredefinedHeader kLastModified{
"Last-Modified"};
102inline constexpr PredefinedHeader kWWWAuthenticate{
"WWW-Authenticate"};
103inline constexpr PredefinedHeader kProxyAuthenticate{
"Proxy-Authenticate"};
108inline constexpr PredefinedHeader kAcceptRanges{
"Accept-Ranges"};
109inline constexpr PredefinedHeader kAllow{
"Allow"};
110inline constexpr PredefinedHeader kServer{
"Server"};
115inline constexpr PredefinedHeader kSetCookie{
"Set-Cookie"};
120inline constexpr PredefinedHeader kWebsocketKey{
"Sec-WebSocket-Key"};
121inline constexpr PredefinedHeader kWebsocketAccept{
"Sec-WebSocket-Accept"};
122inline constexpr PredefinedHeader kWebsocketVersion{
"Sec-WebSocket-Version"};
127inline constexpr PredefinedHeader kConnection{
"Connection"};
128inline constexpr PredefinedHeader kUpgrade{
"Upgrade"};
129inline constexpr PredefinedHeader kCookie{
"Cookie"};
134inline constexpr PredefinedHeader kXYaRequestId{
"X-YaRequestId"};
135inline constexpr PredefinedHeader kXYaTraceId{
"X-YaTraceId"};
136inline constexpr PredefinedHeader kXYaSpanId{
"X-YaSpanId"};
137inline constexpr PredefinedHeader kXRequestId{
"X-RequestId"};
138inline constexpr PredefinedHeader kXBackendServer{
"X-Backend-Server"};
139inline constexpr PredefinedHeader kXTaxiEnvoyProxyDstVhost{
140 "X-Taxi-EnvoyProxy-DstVhost"};
144inline constexpr PredefinedHeader kTraceId{
"X-B3-TraceId"};
145inline constexpr PredefinedHeader kSpanId{
"X-B3-SpanId"};
146inline constexpr PredefinedHeader kSampled{
"X-B3-Sampled"};
147inline constexpr PredefinedHeader kParentSpanId{
"X-B3-ParentSpanId"};
152inline constexpr PredefinedHeader kTraceParent{
"traceparent"};
153inline constexpr PredefinedHeader kTraceState{
"tracestate"};
160inline constexpr PredefinedHeader kXBaggage{
"baggage"};
165inline constexpr PredefinedHeader kXYandexUid{
"X-Yandex-UID"};
168inline constexpr PredefinedHeader kXRemoteIp{
"X-Remote-IP"};
173inline constexpr PredefinedHeader kXYaTaxiAllowAuthRequest{
174 "X-YaTaxi-Allow-Auth-Request"};
175inline constexpr PredefinedHeader kXYaTaxiAllowAuthResponse{
176 "X-YaTaxi-Allow-Auth-Response"};
177inline constexpr PredefinedHeader kXYaTaxiServerHostname{
178 "X-YaTaxi-Server-Hostname"};
179inline constexpr PredefinedHeader kXYaTaxiClientTimeoutMs{
180 "X-YaTaxi-Client-TimeoutMs"};
181inline constexpr PredefinedHeader kXYaTaxiDeadlineExpired{
182 "X-YaTaxi-Deadline-Expired"};
183inline constexpr PredefinedHeader kXYaTaxiRatelimitedBy{
184 "X-YaTaxi-Ratelimited-By"};
185inline constexpr PredefinedHeader kXYaTaxiRatelimitReason{
186 "X-YaTaxi-Ratelimit-Reason"};
188namespace ratelimit_reason {
189inline constexpr std::string_view kCC{
"congestion-control"};
190inline constexpr std::string_view kMaxResponseSizeInFlight{
191 "max-response-size-in-flight"};
192inline constexpr std::string_view kMaxPendingResponses{
193 "too-many-pending-responses"};
194inline constexpr std::string_view kGlobal{
"global-ratelimit"};
195inline constexpr std::string_view kInFlight{
"max-requests-in-flight"};