17 #ifndef PAGESPEED_KERNEL_HTTP_REQUEST_HEADERS_H_
18 #define PAGESPEED_KERNEL_HTTP_REQUEST_HEADERS_H_
25 namespace net_instaweb {
27 class HttpRequestHeaders;
34 enum Method { kOptions, kGet, kHead, kPost, kPut, kDelete, kTrace, kConnect,
35 kPatch, kPurge, kError };
47 has_authorization(false) {
50 Properties(
bool cookie,
bool cookie2,
bool authorization)
53 has_authorization(authorization) {
57 bool has_authorization;
63 void CopyFromProto(
const HttpRequestHeaders& p);
64 void CopyFrom(
const RequestHeaders& other);
67 Method method()
const;
68 const char* method_string()
const;
69 void set_method(Method method);
80 bool WriteAsHttp(
const StringPiece& url, Writer* writer,
81 MessageHandler* handler)
const;
96 Properties GetProperties()
const;
107 bool HasCookie(StringPiece cookie_name)
const;
111 bool HasCookieValue(StringPiece cookie_name, StringPiece cookie_value)
const;
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24