Removed HttpHeader::findAs{LL}Int and unused HttpResponse::{has,get}RetryAfter

This commit is contained in:
Tatsuhiro Tsujikawa
2012-09-26 23:58:59 +09:00
parent b9f972665b
commit 8f2030da09
7 changed files with 9 additions and 56 deletions

View File

@@ -140,8 +140,8 @@ void HttpHeaderProcessorTest::testGetHttpResponseHeader()
CPPUNIT_ASSERT_EQUAL(404, header->getStatusCode());
CPPUNIT_ASSERT_EQUAL(std::string("Not Found"), header->getReasonPhrase());
CPPUNIT_ASSERT_EQUAL(std::string("HTTP/1.1"), header->getVersion());
CPPUNIT_ASSERT_EQUAL((int64_t)9187LL,
header->findAsLLInt(HttpHeader::CONTENT_LENGTH));
CPPUNIT_ASSERT_EQUAL(std::string("9187"),
header->find(HttpHeader::CONTENT_LENGTH));
CPPUNIT_ASSERT_EQUAL(std::string("text/html; charset=UTF-8"),
header->find(HttpHeader::CONTENT_TYPE));
CPPUNIT_ASSERT(!header->defined(HttpHeader::CONTENT_ENCODING));