Function newHttpJsonResponse

Summary

#include <lib/inc/drogon/HttpResponse.h>

(1) static HttpResponsePtr newHttpJsonResponse(const Json::Value &data)

(2) static HttpResponsePtr newHttpJsonResponse(Json::Value &&data)

Function overload

Synopsis

#include <lib/inc/drogon/HttpResponse.h>

static HttpResponsePtr newHttpJsonResponse(const Json::Value &data)

Description

Create a response which returns a json object. Its content type is set to set/json.

Mentioned in

Source

Line 319 in lib/inc/drogon/HttpResponse.h.

Synopsis

#include <lib/inc/drogon/HttpResponse.h>

static HttpResponsePtr newHttpJsonResponse(Json::Value &&data)

Description

No description yet.

Mentioned in

Source

Line 320 in lib/inc/drogon/HttpResponse.h.






Add Discussion as Guest

Log in to DocsForge