Message.cc
Go to the documentation of this file.
77 debugs(58, 3, "input too large: " << hdr_len << " or " << sz << " > " << Config.maxReplyHeaderSize);
207 if (hp.headerBlockSize() && !header.parse(hp.mimeHeader().c_str(), hp.headerBlockSize(), clen)) {
bool httpHeaderHasConnDir(const HttpHeader *hdr, const SBuf &directive)
Definition: HttpHeaderTools.cc:91
void error(char *format,...)
Definition: HttpHdrCc.h:44
void packInto(Packable *, bool full_uri) const
produce a message copy, except for a few connection-specific settings
Definition: Message.cc:253
void setContentLength(int64_t)
[re]sets Content-Length header and cached value
Definition: Message.cc:228
int httpMsgParseStep(const char *buf, int len, int atEnd)
Definition: Message.cc:151
bool parseHeader(Http1::Parser &, Http::ContentLengthInterpreter &)
Definition: Message.cc:201
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
Definition: Parser.h:41
SBuf mimeHeader() const
buffer containing HTTP mime headers, excluding message first-line.
Definition: Parser.h:81
Definition: MemBuf.h:24
Definition: Packable.h:53
virtual void append(const char *buf, int size)=0
Appends a c-string to existing packed data.
static int httpMsgIsolateStart(const char **parse_start, const char **blk_start, const char **blk_end)
Definition: Message.cc:42
size_t headersEnd(const char *mime, size_t l, bool &containsObsFold)
Definition: mime_header.cc:17
AnyP::ProtocolVersion ProtocolVersion()
Protocol version to use in Http::Message structures wrapping FTP messages.
Definition: Elements.cc:24
Definition: forward.h:18
AnyP::ProtocolVersion ProtocolVersion(unsigned int aMajor, unsigned int aMinor)
HTTP version label information.
Definition: ProtocolVersion.h:19