RequestParser.h
Go to the documentation of this file.
optimized set of C chars, with quick membership test and merge support
Definition: CharacterSet.h:18
Definition: RequestMethod.h:27
Definition: Parser.h:41
AnyP::ProtocolVersion msgProtocol_
what protocol label has been found in the first line (if any)
Definition: Parser.h:152
Definition: RequestParser.h:31
bool parseMethodField(Tokenizer &)
Definition: RequestParser.cc:62
Http1::Parser::size_type firstLineSize() const override
size in bytes of the first line including CRLF terminator
Definition: RequestParser.cc:17
static const CharacterSet & RequestTargetCharacters()
characters which Squid will accept in the HTTP request-target (URI)
Definition: RequestParser.cc:113
RequestParser(const RequestParser &)=default
bool parse(const SBuf &aBuf) override
Definition: RequestParser.cc:338
const SBuf & requestUri() const
the request-line URI if this is a request message, or an empty string.
Definition: RequestParser.h:50
bool skipDelimiter(const size_t count, const char *where)
Definition: RequestParser.cc:231
RequestParser()=default
int parseRequestFirstLine()
Definition: RequestParser.cc:277
bool parseHttpVersionField(Tokenizer &)
Definition: RequestParser.cc:176
HttpRequestMethod method_
what request method has been found on the first line
Definition: RequestParser.h:72
RequestParser(RequestParser &&)=default
bool parseUriField(Tokenizer &)
Definition: RequestParser.cc:143
RequestParser(bool preserveParsed)
Definition: RequestParser.h:34
const HttpRequestMethod & method() const
the HTTP method if this is a request message
Definition: RequestParser.h:47
RequestParser & operator=(const RequestParser &)=default
bool skipTrailingCrs(Tokenizer &tok)
Parse CRs at the end of request-line, just before the terminating LF.
Definition: RequestParser.cc:251
Definition: Tokenizer.h:30
Definition: forward.h:18
Definition: parse.c:160