diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-04-21 10:48:11 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-04-21 10:48:11 +0000 |
| commit | e1fa62e6c7ce3617b8bb72b4ffe63f505cc0fdda (patch) | |
| tree | 4e68de6b8c0fe23eb681dd5937b0e4409d6dbccf /src/HttpResponse.h | |
| parent | 3eb74629cbd0f01113bc581d486a8ec95633b4ad (diff) | |
2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
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
Diffstat (limited to 'src/HttpResponse.h')
| -rw-r--r-- | src/HttpResponse.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/HttpResponse.h b/src/HttpResponse.h index 57cfdd83..7ec54db9 100644 --- a/src/HttpResponse.h +++ b/src/HttpResponse.h @@ -49,7 +49,6 @@ class Logger; class HttpResponse { private: int32_t cuid; - unsigned int status; SharedHandle<HttpRequest> httpRequest; SharedHandle<HttpHeader> httpHeader; const Logger* logger; @@ -95,15 +94,7 @@ public: SharedHandle<HttpHeader> getHttpHeader() const; - void setStatus(unsigned int status) - { - this->status = status; - } - - unsigned int getStatus() const - { - return status; - } + const std::string& getResponseStatus() const; void setHttpRequest(const SharedHandle<HttpRequest>& httpRequest); |
