Parser.h
Go to the documentation of this file.
30};
#define RefCountable
The locking interface for use on Reference-Counted classes.
Definition: Lock.h:66
Definition: ProtocolVersion.h:24
optimized set of C chars, with quick membership test and merge support
Definition: CharacterSet.h:18
const AnyP::ProtocolVersion & messageProtocol() const
the protocol label for this message
Definition: Parser.h:84
AnyP::ProtocolVersion msgProtocol_
what protocol label has been found in the first line (if any)
Definition: Parser.h:152
Parser(Parser &&)=default
static const CharacterSet & WhitespaceCharacters()
Definition: Parser.cc:52
bool hackExpectsMime_
Whether the invalid HTTP as HTTP/0.9 hack expects a mime header block.
Definition: Parser.h:158
Parser()=default
void skipLineTerminator(Tokenizer &) const
Definition: Parser.cc:66
Parser(const Parser &)=default
bool grabMimeBlock(const char *which, const size_t limit)
Definition: Parser.cc:157
static const CharacterSet & DelimiterCharacters()
Definition: Parser.cc:59
virtual size_type firstLineSize() const =0
size in bytes of the first line including CRLF terminator
virtual bool parse(const SBuf &aBuf)=0
SBuf mimeHeader() const
buffer containing HTTP mime headers, excluding message first-line.
Definition: Parser.h:81
Parser & operator=(const Parser &)=default
Definition: Tokenizer.h:30
int ErrorLevel()
the right debugs() level for logging HTTP violation messages
Definition: Parser.cc:269
Definition: forward.h:18