#include <testHttpRequest.h>


Public Member Functions | |
void | setUp () |
Protected Member Functions | |
void | testCreateFromUrl () |
void | testIPv6HostColonBug () |
void | testSanityCheckStartLine () |
Private Member Functions | |
CPPUNIT_TEST_SUITE (testHttpRequest) | |
CPPUNIT_TEST (testCreateFromUrl) | |
CPPUNIT_TEST (testIPv6HostColonBug) | |
CPPUNIT_TEST (testSanityCheckStartLine) | |
CPPUNIT_TEST_SUITE_END () | |
Detailed Description
Definition at line 18 of file testHttpRequest.h.
Member Function Documentation
◆ CPPUNIT_TEST() [1/3]
|
private |
◆ CPPUNIT_TEST() [2/3]
|
private |
◆ CPPUNIT_TEST() [3/3]
|
private |
◆ CPPUNIT_TEST_SUITE()
|
private |
◆ CPPUNIT_TEST_SUITE_END()
|
private |
◆ setUp()
void testHttpRequest::setUp | ( | ) |
Definition at line 33 of file testHttpRequest.cc.
References httpHeaderInitModule(), AnyP::UriScheme::Init(), and Mem::Init().
◆ testCreateFromUrl()
|
protected |
Definition at line 44 of file testHttpRequest.cc.
References HttpRequest::FromUrl(), AnyP::Uri::getScheme(), AnyP::Uri::host(), HttpRequest::method, Http::METHOD_CONNECT, Http::METHOD_GET, Http::METHOD_PUT, AnyP::Uri::path(), AnyP::Uri::port(), AnyP::PROTO_HTTP, AnyP::PROTO_NONE, and HttpRequest::url.
◆ testIPv6HostColonBug()
|
protected |
Definition at line 105 of file testHttpRequest.cc.
References HttpRequest::FromUrl(), AnyP::Uri::getScheme(), AnyP::Uri::host(), HttpRequest::method, Http::METHOD_GET, NULL, AnyP::Uri::path(), AnyP::Uri::port(), AnyP::PROTO_HTTP, and HttpRequest::url.
◆ testSanityCheckStartLine()
|
protected |
Definition at line 143 of file testHttpRequest.cc.
References MemBuf::append(), MemBuf::content(), MemBuf::contentSize(), PrivateHttpRequest::doSanityCheckStartLine(), error(), headersEnd(), MemBuf::init(), MemBuf::reset(), Http::scInvalidHeader, and Http::scNone.
The documentation for this class was generated from the following files:
- src/tests/testHttpRequest.h
- src/tests/testHttpRequest.cc