diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-23 21:46:01 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-23 21:46:01 +0900 |
| commit | 54665ff4093f4517104fe36c1b58f9a339710adf (patch) | |
| tree | c946194194f84032d0ace485d113828404364820 /src/HttpHeader.h | |
| parent | dd7014a6121c0985e94451e2492a112402501335 (diff) | |
Removed static std::string constant in HttpHeader
This change also removes inspection of Proxy-Connection header field
when checking whether the remote endpoint keeps connection open.
Diffstat (limited to 'src/HttpHeader.h')
| -rw-r--r-- | src/HttpHeader.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/HttpHeader.h b/src/HttpHeader.h index 0d4eb7ba..353065c3 100644 --- a/src/HttpHeader.h +++ b/src/HttpHeader.h @@ -158,12 +158,9 @@ public: // assumes the values of the header field is delimited by ','. bool fieldContains(int hdKey, const char* value); - static const std::string HTTP_1_1; - static const std::string CLOSE; - static const std::string KEEP_ALIVE; - static const std::string CHUNKED; - static const std::string GZIP; - static const std::string DEFLATE; + // Returns true if the headers indicate that the remote endpoint + // keeps connection open. + bool isKeepAlive() const; }; int idInterestingHeader(const char* hdName); |
