diff options
author | ipknHama <ipknhama@gmail.com> | 2014-04-15 05:11:37 +0900 |
---|---|---|
committer | ipknHama <ipknhama@gmail.com> | 2014-04-15 05:11:37 +0900 |
commit | f8ee6d4dadbc8f28095346b91d0a3ed3ed495c4f (patch) | |
tree | a4cd5acfd25f91fa17ee1c24f07c0fcd7c127eb7 /http_response.h | |
parent | b69a40c15b1f947acdb7f8dcfdd25a4fc3685339 (diff) | |
download | crow-f8ee6d4dadbc8f28095346b91d0a3ed3ed495c4f.tar.gz crow-f8ee6d4dadbc8f28095346b91d0a3ed3ed495c4f.zip |
add test for parameter tagging, response
Diffstat (limited to 'http_response.h')
-rw-r--r-- | http_response.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/http_response.h b/http_response.h index 7b862c4..9cbfd02 100644 --- a/http_response.h +++ b/http_response.h @@ -29,11 +29,11 @@ namespace flask struct response { std::string body; - int status{200}; + int code{200}; std::unordered_map<std::string, std::string> headers; response() {} - explicit response(int status) : status(status) {} + explicit response(int code) : code(code) {} response(std::string body) : body(std::move(body)) {} - response(int status, std::string body) : body(std::move(body)), status(status) {} + response(int code, std::string body) : body(std::move(body)), code(code) {} }; } |