aboutsummaryrefslogtreecommitdiffstats
path: root/include/http_request.h
diff options
context:
space:
mode:
authoripknHama <ipknhama@gmail.com>2014-09-12 12:14:54 +0900
committeripknHama <ipknhama@gmail.com>2014-09-12 12:17:10 +0900
commitb1b87a6c5a0f8475f26192fba5ae5a5a8da8c49d (patch)
tree38d5a7c47e37b8fe16e058bfdcb05e905aa50807 /include/http_request.h
parent764999e6c863f3ea07b48196b5b798a9a7372688 (diff)
downloadcrow-b1b87a6c5a0f8475f26192fba5ae5a5a8da8c49d.tar.gz
crow-b1b87a6c5a0f8475f26192fba5ae5a5a8da8c49d.zip
fix compile error
- add consturctor to request - remove unused type using - include "logging.h" from dumb_timer_queue.h (who uses CROW_LOG_DEBUG)
Diffstat (limited to 'include/http_request.h')
-rw-r--r--include/http_request.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/http_request.h b/include/http_request.h
index 7d2da67..331bc80 100644
--- a/include/http_request.h
+++ b/include/http_request.h
@@ -23,6 +23,18 @@ namespace crow
ci_map headers;
std::string body;
+ void* middleware_context{};
+
+ request()
+ : method(HTTPMethod::GET)
+ {
+ }
+
+ 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))
+ {
+ }
+
void add_header(std::string key, std::string value)
{
headers.emplace(std::move(key), std::move(value));
@@ -33,6 +45,5 @@ namespace crow
return crow::get_header_value(headers, key);
}
- void* middleware_context{};
};
}