Fix typo in newHttpJsonResponse documentation (#1658)

This commit is contained in:
Umar Sharief 2023-07-01 04:44:22 +01:00 committed by GitHub
parent 74bb47c690
commit 6dbe650c74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -358,9 +358,11 @@ class DROGON_EXPORT HttpResponse
ContentType type);
/// Create a response which returns a 404 page.
static HttpResponsePtr newNotFoundResponse();
/// Create a response which returns a json object. Its content type is set
/// to set/json.
/// Create a response which returns a json object. Its content-type is set
/// to application/json.
static HttpResponsePtr newHttpJsonResponse(const Json::Value &data);
/// Create a response which returns a json object. Its content-type is set
/// to application/json.
static HttpResponsePtr newHttpJsonResponse(Json::Value &&data);
/// Create a response that returns a page rendered by a view named
/// viewName.