mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
Merge pull request #90 from SamuelMarks/json_res_status
[Feature] JSON response can now include status code
This commit is contained in:
commit
6a4e80811a
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user