diff options
author | Antony Woods <acron1@gmail.com> | 2014-10-24 09:40:09 +0100 |
---|---|---|
committer | Antony Woods <acron1@gmail.com> | 2014-10-24 09:40:09 +0100 |
commit | 693aac108de4dc62811b9a2737d895ada474cfb2 (patch) | |
tree | 44cc722afea8b6ef26095cd27aa64b97ec48d74e /include/http_request.h | |
parent | 27bf11d35c8ce44fd9fef656e2975712846b9bb2 (diff) | |
parent | 4b3b8070e75ce0fc181e5c012c47da2a1e7a918e (diff) | |
download | crow-693aac108de4dc62811b9a2737d895ada474cfb2.tar.gz crow-693aac108de4dc62811b9a2737d895ada474cfb2.zip |
Post-pull commit
Diffstat (limited to 'include/http_request.h')
-rw-r--r-- | include/http_request.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/http_request.h b/include/http_request.h index 331bc80..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,7 +20,9 @@ namespace crow struct request { HTTPMethod method; + std::string raw_url; std::string url; + query_string url_params; ci_map headers; std::string body; @@ -30,8 +33,8 @@ namespace crow { } - request(HTTPMethod method, std::string url, ci_map headers, std::string body) - : method(method), url(std::move(url)), 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)) { } |