From e1fa62e6c7ce3617b8bb72b4ffe63f505cc0fdda Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 21 Apr 2008 10:48:11 +0000 Subject: 2008-04-21 Tatsuhiro Tsujikawa Now HTTP status and version are a member variable of HttpHeader. HTTP status is processed as a string, not integer. * src/AbstractProxyResponseCommand.cc * src/HttpConnection.cc * src/HttpHeader.cc * src/HttpHeader.h * src/HttpHeaderProcessor.cc * src/HttpHeaderProcessor.h * src/HttpResponse.cc * src/HttpResponse.h * test/HttpHeaderProcessorTest.cc * test/HttpResponseTest.cc --- src/HttpHeaderProcessor.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/HttpHeaderProcessor.h') diff --git a/src/HttpHeaderProcessor.h b/src/HttpHeaderProcessor.h index fc6814d3..e4bdc9f1 100644 --- a/src/HttpHeaderProcessor.h +++ b/src/HttpHeaderProcessor.h @@ -70,7 +70,11 @@ public: */ size_t getPutBackDataLength() const; - std::pair > getHttpStatusHeader(); + /** + * Processes the recieved header as a http response header and returns + * HttpHeader object. + */ + SharedHandle getHttpResponseHeader(); std::string getHeaderString() const; -- cgit