Read/write API for HTTP request (RequestHeaders is a misnomer). More...
#include "request_headers.h"
Public Types | |
enum | Method { kOptions, kGet, kHead, kPost, kPut, kDelete, kTrace, kConnect, kPatch, kError } |
Public Member Functions | |
void | Clear () |
void | CopyFrom (const RequestHeaders &other) |
GoogleString | ToString () const |
Method | method () const |
const char * | method_string () const |
void | set_method (Method method) |
const GoogleString & | message_body () const |
void | set_message_body (const GoogleString &data) |
bool | WriteAsHttp (const StringPiece &url, Writer *writer, MessageHandler *handler) const |
bool | AcceptsGzip () const |
Determines whether a request header accepts gzipped content. |
Read/write API for HTTP request (RequestHeaders is a misnomer).
const GoogleString& net_instaweb::RequestHeaders::message_body | ( | ) | const |
This is encoded message body, a rewriter or fetcher may opt to translate to entity-body only after removing header which has encoding information.