From 31a118b91767e8951b14366d24a436f4cbffb7b1 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Tue, 28 Dec 2010 14:43:57 +0100 Subject: Parse query strings. --- http.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'http.h') diff --git a/http.h b/http.h index ef6e43c..29add9a 100644 --- a/http.h +++ b/http.h @@ -7,11 +7,14 @@ #include #include -typedef std::map HTTPHeaders; +typedef std::map 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); -- cgit v1.2.3