summaryrefslogtreecommitdiff
path: root/http/http_request.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'http/http_request.hpp')
-rw-r--r--http/http_request.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/http/http_request.hpp b/http/http_request.hpp
index e375f2888b..7cefb7d912 100644
--- a/http/http_request.hpp
+++ b/http/http_request.hpp
@@ -55,6 +55,16 @@ struct Request
Request& operator=(Request&&) = default;
~Request() = default;
+ void addHeader(std::string_view key, std::string_view value)
+ {
+ req.insert(key, value);
+ }
+
+ void addHeader(boost::beast::http::field key, std::string_view value)
+ {
+ req.insert(key, value);
+ }
+
boost::beast::http::verb method() const
{
return req.method();