summaryrefslogtreecommitdiff
path: root/src/HttpHeader.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-09-23 21:46:01 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-09-23 21:46:01 +0900
commit54665ff4093f4517104fe36c1b58f9a339710adf (patch)
treec946194194f84032d0ace485d113828404364820 /src/HttpHeader.h
parentdd7014a6121c0985e94451e2492a112402501335 (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.h9
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);