aboutsummaryrefslogtreecommitdiffstats
path: root/include/http_request.h
diff options
context:
space:
mode:
authorAntony Woods <acron1@gmail.com>2014-10-14 09:48:35 +0100
committerAntony Woods <acron1@gmail.com>2014-10-14 09:48:35 +0100
commit06842721d7da53a2235e6e4071760588ec285f90 (patch)
treec72f69e9fe4154be039ba89e474395e21b6d5fdf /include/http_request.h
parenta8f6c5a92fea5439b4a0372ccc3b367e3c3bed3b (diff)
downloadcrow-06842721d7da53a2235e6e4071760588ec285f90.tar.gz
crow-06842721d7da53a2235e6e4071760588ec285f90.zip
Wrapped qs_parse as query_string and added tests
Diffstat (limited to 'include/http_request.h')
-rw-r--r--include/http_request.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/http_request.h b/include/http_request.h
index 24edb66..1319b2d 100644
--- a/include/http_request.h
+++ b/include/http_request.h
@@ -2,6 +2,7 @@
#include "common.h"
#include "ci_map.h"
+#include "query_string.h"
namespace crow
{
@@ -19,8 +20,9 @@ namespace crow
struct request
{
HTTPMethod method;
+ std::string raw_url;
std::string url;
- ci_map url_params;
+ query_string url_params;
ci_map headers;
std::string body;
@@ -31,8 +33,8 @@ namespace crow
{
}
- request(HTTPMethod method, std::string url, ci_map url_params, ci_map headers, std::string body)
- : method(method), url(std::move(url)), url_params(std::move(url_params)), headers(std::move(headers)), body(std::move(body))
+ request(HTTPMethod method, std::string raw_url, std::string url, query_string url_params, ci_map headers, std::string body)
+ : method(method), raw_url(std::move(raw_url)), url(std::move(url)), url_params(std::move(url_params)), headers(std::move(headers)), body(std::move(body))
{
}