diff options
author | Benoit Foucher <benoit@zeroc.com> | 2015-02-16 12:44:31 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2015-02-16 12:44:31 +0100 |
commit | c4b35b30b99898e9ef1ae44655011b3575d634a3 (patch) | |
tree | 87879b8d66e9a85bb0c9022731cff7fe72756183 /cpp/src/Ice/HttpParser.h | |
parent | ICE-6307 - Fixed ruby makefile to add ruby static lib path to linker for cust... (diff) | |
download | ice-c4b35b30b99898e9ef1ae44655011b3575d634a3.tar.bz2 ice-c4b35b30b99898e9ef1ae44655011b3575d634a3.tar.xz ice-c4b35b30b99898e9ef1ae44655011b3575d634a3.zip |
Fixed ICE-6225 - Added headers attribute to WSConnectionInfo
Diffstat (limited to 'cpp/src/Ice/HttpParser.h')
-rw-r--r-- | cpp/src/Ice/HttpParser.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cpp/src/Ice/HttpParser.h b/cpp/src/Ice/HttpParser.h index d1141a719b7..65500771fcd 100644 --- a/cpp/src/Ice/HttpParser.h +++ b/cpp/src/Ice/HttpParser.h @@ -19,7 +19,7 @@ namespace IceInternal std::vector<unsigned char> calcSHA1(const std::vector<unsigned char>&); -typedef std::map<std::string, std::string> HeaderFields; +typedef std::map<std::string, std::pair<std::string, std::string> > HeaderFields; class WebSocketException { @@ -58,9 +58,7 @@ public: bool getHeader(const std::string&, std::string&, bool) const; - typedef std::map<std::string, std::string> HeaderMap; - - const HeaderMap& headers() const; + std::map<std::string, std::string> getHeaders() const; private: @@ -69,7 +67,7 @@ private: std::string _method; std::string _uri; - HeaderMap _headers; + HeaderFields _headers; std::string _headerName; int _versionMajor; |