21 #ifndef PAGESPEED_KERNEL_HTTP_HTTP_NAMES_H_
22 #define PAGESPEED_KERNEL_HTTP_HTTP_NAMES_H_
26 namespace net_instaweb {
33 static const char kAccept[];
34 static const char kAcceptEncoding[];
35 static const char kAcceptRanges[];
36 static const char kAccessControlAllowOrigin[];
37 static const char kAccessControlAllowCredentials[];
38 static const char kAge[];
39 static const char kAllow[];
40 static const char kAltSvc[];
41 static const char kAlternateProtocol[];
42 static const char kAttachment[];
43 static const char kAuthorization[];
44 static const char kCacheControl[];
45 static const char kConnection[];
46 static const char kContentEncoding[];
47 static const char kContentDisposition[];
48 static const char kContentLanguage[];
49 static const char kContentLength[];
50 static const char kContentSecurityPolicy[];
51 static const char kContentType[];
52 static const char kCookie[];
53 static const char kCookie2[];
54 static const char kDate[];
55 static const char kDeflate[];
56 static const char kDnt[];
57 static const char kEtag[];
58 static const char kExpires[];
59 static const char kGzip[];
60 static const char kHost[];
61 static const char kIfModifiedSince[];
62 static const char kIfNoneMatch[];
63 static const char kKeepAlive[];
64 static const char kLastModified[];
65 static const char kLink[];
66 static const char kLocation[];
67 static const char kMaxAge[];
68 static const char kNoCache[];
69 static const char kNoCacheMaxAge0[];
70 static const char kNoStore[];
71 static const char kNosniff[];
72 static const char kOrigin[];
73 static const char kPragma[];
74 static const char kPrivate[];
75 static const char kProxyAuthenticate[];
76 static const char kProxyAuthorization[];
77 static const char kPublic[];
78 static const char kPurpose[];
80 static const char kRefresh[];
81 static const char kSaveData[];
82 static const char kServer[];
83 static const char kSetCookie[];
84 static const char kSetCookie2[];
85 static const char kTE[];
86 static const char kTrailers[];
87 static const char kTransferEncoding[];
88 static const char kUpgrade[];
89 static const char kUserAgent[];
90 static const char kVary[];
91 static const char kVia[];
92 static const char kWarning[];
93 static const char kXmlHttpRequest[];
94 static const char kXAssociatedContent[];
95 static const char kXContentTypeOptions[];
96 static const char kXForwardedFor[];
97 static const char kXForwardedProto[];
98 static const char kXGooglePagespeedClientId[];
99 static const char kXGoogleRequestEventId[];
117 static const char kXRequestedWith[];
122 static const char kXUACompatible[];
126 static const char kXAccelRedirect[];
156 namespace HttpStatus {
161 kSwitchingProtocols = 101,
166 kNonAuthoritative = 203,
169 kPartialContent = 206,
171 kMultipleChoices = 300,
172 kMovedPermanently = 301,
178 kTemporaryRedirect = 307,
182 kPaymentRequired = 402,
185 kMethodNotAllowed = 405,
186 kNotAcceptable = 406,
187 kProxyAuthRequired = 407,
188 kRequestTimeout = 408,
191 kLengthRequired = 411,
192 kPreconditionFailed = 412,
193 kEntityTooLarge = 413,
195 kUnsupportedMediaType = 415,
196 kRangeNotSatisfiable = 416,
197 kExpectationFailed = 417,
200 kInternalServerError = 500,
201 kNotImplemented = 501,
204 kGatewayTimeout = 504,
205 kHttpVersionNotSupported = 505,
208 kProxyPublisherFailure = 520,
210 kProxyConfigurationFailure = 522,
211 kProxyDeclinedRequest = 523,
212 kProxyDnsLookupFailure = 524,
218 kRememberFailureRangeStart = 10001,
221 kRememberFetchFailedStatusCode = 10001,
225 kRememberNotCacheableStatusCode = 10002,
229 kRememberNotCacheableAnd200StatusCode = 10003,
232 kRememberFetchFailed4xxCode = 10004,
236 kRememberEmptyStatusCode = 10005,
240 kRememberDroppedStatusCode = 10006,
243 kRememberFailureRangeEnd,
247 kUnknownStatusCode = 10020,
251 const char* GetReasonPhrase(Code rc);
static const StringPieceVector & CachingHeadersToBeRemoved()
static const char kXPsaLoadShed[]
This header is set on optional fetches that got dropped due to load.
Definition: http_names.h:115
static const StringPieceVector & SortedHopByHopHeaders()
static const char kXPsaBlockingRewriteModeSlow[]
Definition: http_names.h:109
Definition: http_names.h:32
static const char kReferer[]
sic
Definition: http_names.h:79
static const char kXPsaClientOptions[]
A request header for client to specify client options.
Definition: http_names.h:112
static const StringPieceVector & SortedEndToEndHeaders()
static const char kXPageSpeedLoop[]
PageSpeed Loop detection for proxy mode.
Definition: http_names.h:128
static const char kXPsaBlockingRewrite[]
Definition: http_names.h:102
static const char kXPsaBlockingRewriteMode[]
Definition: http_names.h:105
static const char kXSendfile[]
Sendfile type responses.
Definition: http_names.h:125
static const char kXOriginalContentLength[]
Definition: http_names.h:121