diff options
author | ipknHama <ipknhama@gmail.com> | 2014-04-01 22:58:52 +0900 |
---|---|---|
committer | ipknHama <ipknhama@gmail.com> | 2014-04-01 22:58:52 +0900 |
commit | 936a756ca16272d02494f9f7077ffa51749760a3 (patch) | |
tree | d5f757c7a93226fdb9b1e3bf23187b7a700f32b8 /http_response.h | |
parent | ddf9b02d5f6789913c9579d511e8c046055b40b3 (diff) | |
download | crow-936a756ca16272d02494f9f7077ffa51749760a3.tar.gz crow-936a756ca16272d02494f9f7077ffa51749760a3.zip |
multiple routing (still no argument)
Diffstat (limited to 'http_response.h')
-rw-r--r-- | http_response.h | 1 |
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) {} |