testHttpRequest.cc
Go to the documentation of this file.
40 bool doSanityCheckStartLine(const char *b, const size_t h, Http::StatusCode *e) { return sanityCheckStartLine(b,h,e); };
75 CPPUNIT_ASSERT_EQUAL(AnyP::PROTO_HTTP, static_cast<AnyP::ProtocolType>(aRequest->url.getScheme()));
86 CPPUNIT_ASSERT_EQUAL(AnyP::PROTO_HTTP, static_cast<AnyP::ProtocolType>(aRequest->url.getScheme()));
97 CPPUNIT_ASSERT_EQUAL(AnyP::PROTO_HTTP, static_cast<AnyP::ProtocolType>(aRequest->url.getScheme()));
114 CPPUNIT_ASSERT_EQUAL(AnyP::PROTO_NONE, static_cast<AnyP::ProtocolType>(aRequest->url.getScheme()));
136 CPPUNIT_ASSERT_EQUAL(AnyP::PROTO_HTTP, static_cast<AnyP::ProtocolType>(aRequest->url.getScheme()));
146 CPPUNIT_ASSERT_EQUAL(AnyP::PROTO_HTTP, static_cast<AnyP::ProtocolType>(aRequest->url.getScheme()));
156 CPPUNIT_ASSERT_EQUAL(AnyP::PROTO_HTTP, static_cast<AnyP::ProtocolType>(aRequest->url.getScheme()));
void error(char *format,...)
Definition: HttpRequest.h:49
bool sanityCheckStartLine(const char *buf, const size_t hdr_len, Http::StatusCode *error) override
Definition: HttpRequest.cc:268
static HttpRequest * FromUrl(const SBuf &url, const MasterXaction::Pointer &, const HttpRequestMethod &method=Http::METHOD_GET)
Definition: HttpRequest.cc:517
Definition: MemBuf.h:24
void startup() override
Definition: testHttpRequest.cc:37
bool doSanityCheckStartLine(const char *b, const size_t h, Http::StatusCode *e)
Definition: testHttpRequest.cc:40
PrivateHttpRequest(const MasterXaction::Pointer &mx)
Definition: testHttpRequest.cc:39
Definition: SquidString.h:26
Definition: testHttpRequest.cc:20
CPPUNIT_TEST_SUITE(TestHttpRequest)
CPPUNIT_TEST_SUITE_END()
CPPUNIT_TEST(testCreateFromUrl)
void testSanityCheckStartLine()
Definition: testHttpRequest.cc:160
CPPUNIT_TEST(testIPv6HostColonBug)
CPPUNIT_TEST(testSanityCheckStartLine)
implements test program's main() function while enabling customization
Definition: unitTestMain.h:26
size_t headersEnd(const char *mime, size_t l, bool &containsObsFold)
Definition: mime_header.cc:17
uint16_t KnownPort
validated/supported port number; these values are never zero
Definition: UriScheme.h:23
CPPUNIT_TEST_SUITE_REGISTRATION(TestHttpRequest)