Protected Member Functions | |
void | globalSetup () |
void | testParserConstruct () |
void | testParseRequestLineTerminators () |
void | testParseRequestLineMethods () |
void | testParseRequestLineProtocols () |
void | testParseRequestLineStrange () |
void | testParseRequestLineInvalid () |
void | testDripFeed () |
Detailed Description
Definition at line 24 of file testHttp1Parser.cc.
Member Function Documentation
◆ CPPUNIT_TEST() [1/7]
|
private |
◆ CPPUNIT_TEST() [2/7]
|
private |
◆ CPPUNIT_TEST() [3/7]
|
private |
◆ CPPUNIT_TEST() [4/7]
|
private |
◆ CPPUNIT_TEST() [5/7]
|
private |
◆ CPPUNIT_TEST() [6/7]
|
private |
◆ CPPUNIT_TEST() [7/7]
|
private |
◆ CPPUNIT_TEST_SUITE()
|
private |
◆ CPPUNIT_TEST_SUITE_END()
|
private |
◆ globalSetup()
|
protected |
Definition at line 55 of file testHttp1Parser.cc.
References Config, Mem::Init(), SquidConfig::maxRequestHeaderSize, SquidConfig::onoff, and SquidConfig::relaxed_header_parser.
Referenced by testParseRequestLineInvalid(), testParseRequestLineMethods(), testParseRequestLineProtocols(), testParseRequestLineStrange(), and testParseRequestLineTerminators().
◆ testDripFeed()
|
protected |
Definition at line 1101 of file testHttp1Parser.cc.
References SBuf::append(), SBuf::clear(), Http::One::RequestParser::clear(), Config, Http::One::HTTP_PARSE_FIRST, Http::One::HTTP_PARSE_MIME, Http::One::HTTP_PARSE_NONE, SBuf::length(), SquidConfig::maxRequestHeaderSize, resultSet::method, Http::METHOD_GET, resultSet::needsMore, Http::One::Parser::needsMoreData(), SquidConfig::onoff, resultSet::parsed, resultSet::parserState, AnyP::PROTO_HTTP, Ftp::ProtocolVersion(), SquidConfig::relaxed_header_parser, Http::One::Parser::remaining(), Http::scNone, Http::scOkay, resultSet::status, SBuf::substr(), resultSet::suffixSz, testResults(), resultSet::uri, and resultSet::version.
◆ testParserConstruct()
|
protected |
Definition at line 152 of file testHttp1Parser.cc.
References Http::One::Parser::buf_, Http::One::HTTP_PARSE_NONE, SBuf::isEmpty(), Http::One::RequestParser::method_, Http::METHOD_NONE, Http::One::Parser::msgProtocol_, Http::One::Parser::needsMoreData(), Http::One::Parser::parseStatusCode, Http::One::Parser::parsingStage_, Http::scNone, and Http::One::RequestParser::uri_.
◆ testParseRequestLineInvalid()
|
protected |
Definition at line 911 of file testHttp1Parser.cc.
References SBuf::append(), SBuf::clear(), Http::One::RequestParser::clear(), Config, globalSetup(), Http::One::HTTP_PARSE_DONE, SBuf::length(), SquidConfig::onoff, resultSet::parsed, Ftp::ProtocolVersion(), SquidConfig::relaxed_header_parser, Http::scBadRequest, and testResults().
◆ testParseRequestLineMethods()
|
protected |
Definition at line 657 of file testHttp1Parser.cc.
References SBuf::append(), SBuf::clear(), Http::One::RequestParser::clear(), Config, globalSetup(), Http::One::HTTP_PARSE_DONE, Http::One::HTTP_PARSE_MIME, SBuf::length(), Http::METHOD_GET, Http::METHOD_OPTIONS, SquidConfig::onoff, resultSet::parsed, AnyP::PROTO_HTTP, Ftp::ProtocolVersion(), SquidConfig::relaxed_header_parser, Http::scBadRequest, Http::scOkay, and testResults().
◆ testParseRequestLineProtocols()
|
protected |
Definition at line 181 of file testHttp1Parser.cc.
References SBuf::append(), SBuf::clear(), Http::One::RequestParser::clear(), globalSetup(), Http::One::HTTP_PARSE_DONE, Http::One::HTTP_PARSE_MIME, SBuf::length(), Http::METHOD_GET, Http::METHOD_POST, resultSet::parsed, AnyP::PROTO_HTTP, Ftp::ProtocolVersion(), Http::scBadRequest, Http::scOkay, and testResults().
◆ testParseRequestLineStrange()
|
protected |
Definition at line 463 of file testHttp1Parser.cc.
References SBuf::append(), SBuf::clear(), Http::One::RequestParser::clear(), Config, globalSetup(), Http::One::HTTP_PARSE_DONE, Http::One::HTTP_PARSE_MIME, SBuf::length(), Http::METHOD_GET, SquidConfig::onoff, resultSet::parsed, AnyP::PROTO_HTTP, Ftp::ProtocolVersion(), SquidConfig::relaxed_header_parser, Http::scBadRequest, Http::scOkay, and testResults().
◆ testParseRequestLineTerminators()
|
protected |
Definition at line 559 of file testHttp1Parser.cc.
References SBuf::append(), SBuf::clear(), Http::One::RequestParser::clear(), Config, globalSetup(), Http::One::HTTP_PARSE_DONE, Http::One::HTTP_PARSE_MIME, SBuf::length(), Http::METHOD_GET, SquidConfig::onoff, resultSet::parsed, AnyP::PROTO_HTTP, Ftp::ProtocolVersion(), SquidConfig::relaxed_header_parser, Http::scBadRequest, Http::scOkay, and testResults().
The documentation for this class was generated from the following file:
- src/tests/testHttp1Parser.cc