diff options
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) {} }; } |