summaryrefslogtreecommitdiff
path: root/http.h
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-12-28 14:43:57 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-12-28 14:43:57 +0100
commit31a118b91767e8951b14366d24a436f4cbffb7b1 (patch)
treef843a7096d843b31dd5d200f87ae1982ab228a12 /http.h
parentb77ba4c739d25768dc56b47a929d800266c3230b (diff)
Parse query strings.
Diffstat (limited to 'http.h')
-rw-r--r--http.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/http.h b/http.h
index ef6e43c..29add9a 100644
--- a/http.h
+++ b/http.h
@@ -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);