diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-12-28 14:43:57 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-12-28 14:43:57 +0100 |
commit | 31a118b91767e8951b14366d24a436f4cbffb7b1 (patch) | |
tree | f843a7096d843b31dd5d200f87ae1982ab228a12 /http.h | |
parent | b77ba4c739d25768dc56b47a929d800266c3230b (diff) |
Parse query strings.
Diffstat (limited to 'http.h')
-rw-r--r-- | http.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -7,11 +7,14 @@ #include <string> #include <map> -typedef std::map<std::string, std::string> HTTPHeaders; +typedef std::map<std::string, std::string> stringmap; +typedef stringmap HTTPHeaders; +typedef stringmap HTTPQuery; class HTTPRequest { public: std::string type, path, httpver; + HTTPQuery query; HTTPHeaders headers; HTTPRequest(std::istream& is); static void url_decode(std::string& str); |