diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/http_response.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/http_response.h b/include/http_response.h index 0ce2916..a7b63bf 100644 --- a/include/http_response.h +++ b/include/http_response.h @@ -49,6 +49,10 @@ namespace crow { json_mode(); } + response(int code, const json::wvalue& json_value) : code(code), body(json::dump(json_value)) + { + json_mode(); + } response(response&& r) { |