Message.h
Go to the documentation of this file.
46 };
91 };
131 virtual bool sanityCheckStartLine(const char *buf, const size_t hdr_len, Http::StatusCode *error) = 0;
143 bool parseHeader(Http1::Parser &, Http::ContentLengthInterpreter &); // TODO move this function to the parser
#define RefCountable
The locking interface for use on Reference-Counted classes.
Definition: Lock.h:66
void error(char *format,...)
Definition: ProtocolVersion.h:24
Definition: HttpHdrCc.h:44
Definition: HttpHeader.h:75
Definition: RequestMethod.h:27
virtual void configureContentLengthInterpreter(Http::ContentLengthInterpreter &)=0
configures the interpreter as needed
void packInto(Packable *, bool full_uri) const
produce a message copy, except for a few connection-specific settings
Definition: Message.cc:253
virtual void reset()=0
void setContentLength(int64_t)
[re]sets Content-Length header and cached value
Definition: Message.cc:228
virtual bool expectingBody(const HttpRequestMethod &, int64_t &) const =0
virtual bool sanityCheckStartLine(const char *buf, const size_t hdr_len, Http::StatusCode *error)=0
int httpMsgParseStep(const char *buf, int len, int atEnd)
Definition: Message.cc:151
virtual void packFirstLineInto(Packable *p, bool full_uri) const =0
virtual Http::Message * clone() const =0
bool parseHeader(Http1::Parser &, Http::ContentLengthInterpreter &)
Definition: Message.cc:201
virtual bool inheritProperties(const Http::Message *)=0
bool parse(const char *buf, const size_t sz, bool eol, Http::StatusCode *error)
Definition: Message.cc:68
bool parseCharBuf(const char *buf, ssize_t end)
Definition: Message.cc:129
virtual bool parseFirstLine(const char *blk_start, const char *blk_end)=0
Definition: Parser.h:41
Definition: MemBuf.h:24
Definition: Packable.h:53
Definition: forward.h:18