diff options
author | Samuel Marks <samuelmarks@gmail.com> | 2015-09-27 13:33:09 +1000 |
---|---|---|
committer | Samuel Marks <samuelmarks@gmail.com> | 2015-09-27 13:33:09 +1000 |
commit | 55dd19eb810da007488e996ae91af16dabfd4a0b (patch) | |
tree | e36804ee140aa5c60ac04772a0a85bd964ec2d29 /amalgamate | |
parent | 64aa41af82d53807273f84685cf7ed4fb8449dc0 (diff) | |
download | crow-55dd19eb810da007488e996ae91af16dabfd4a0b.tar.gz crow-55dd19eb810da007488e996ae91af16dabfd4a0b.zip |
[Feature] JSON response can now include status code
Diffstat (limited to 'amalgamate')
-rw-r--r-- | amalgamate/crow_all.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/amalgamate/crow_all.h b/amalgamate/crow_all.h index 792975c..5aa6a83 100644 --- a/amalgamate/crow_all.h +++ b/amalgamate/crow_all.h @@ -6274,6 +6274,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) { |