aboutsummaryrefslogtreecommitdiffstats
path: root/http_response.h
diff options
context:
space:
mode:
Diffstat (limited to 'http_response.h')
-rw-r--r--http_response.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/http_response.h b/http_response.h
index 1221dd2..7927d6d 100644
--- a/http_response.h
+++ b/http_response.h
@@ -32,6 +32,7 @@ namespace flask
std::string body;
std::unordered_map<std::string, std::string> headers;
response() {}
+ response(int status) : status(status) {}
response(const std::string& body) : body(body) {}
response(std::string&& body) : body(std::move(body)) {}
response(const std::string& body, int status) : body(body), status(status) {}