Parser.h
static const CharacterSet & DelimiterCharacters()
Definition: Parser.cc:59
Parser & operator=(const Parser &)=default
Parser(Parser &&)=default
Definition: forward.h:22
SBuf mimeHeader() const
buffer containing HTTP mime headers, excluding message first-line.
Definition: Parser.h:81
static const CharacterSet & WhitespaceCharacters()
Definition: Parser.cc:52
virtual bool parse(const SBuf &aBuf)=0
void skipLineTerminator(Tokenizer &) const
Definition: Parser.cc:66
Parser(const Parser &)=default
bool grabMimeBlock(const char *which, const size_t limit)
Definition: Parser.cc:163
Definition: Tokenizer.h:30
const AnyP::ProtocolVersion & messageProtocol() const
the protocol label for this message
Definition: Parser.h:84
bool hackExpectsMime_
Whether the invalid HTTP as HTTP/0.9 hack expects a mime header block.
Definition: Parser.h:160
virtual size_type firstLineSize() const =0
size in bytes of the first line including CRLF terminator
AnyP::ProtocolVersion msgProtocol_
what protocol label has been found in the first line (if any)
Definition: Parser.h:154
Parser()=default
optimized set of C chars, with quick membership test and merge support
Definition: CharacterSet.h:18
int ErrorLevel()
the right debugs() level for logging HTTP violation messages
Definition: Parser.cc:275
Definition: ProtocolVersion.h:24