MCPcopy Create free account
hub / github.com/aria2/aria2 / testGetHttpResponseHeader_statusOnly

Method testGetHttpResponseHeader_statusOnly

test/HttpHeaderProcessorTest.cc:146–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void HttpHeaderProcessorTest::testGetHttpResponseHeader_statusOnly()
147{
148 HttpHeaderProcessor proc(HttpHeaderProcessor::CLIENT_PARSER);
149
150 std::string hd = "HTTP/1.1 200\r\n\r\n";
151 CPPUNIT_ASSERT(proc.parse(hd));
152 auto header = proc.getResult();
153 CPPUNIT_ASSERT_EQUAL(200, header->getStatusCode());
154}
155
156void HttpHeaderProcessorTest::
157 testGetHttpResponseHeader_insufficientStatusLength()

Callers

nothing calls this directly

Calls 3

parseMethod · 0.45
getResultMethod · 0.45
getStatusCodeMethod · 0.45

Tested by

no test coverage detected