Logo Pico-Framework A web-first embedded framework for C++
Loading...
Searching...
No Matches
JsonResponse.cpp File Reference
+ Include dependency graph for JsonResponse.cpp:

Go to the source code of this file.

Namespaces

namespace  JsonResponse
 

Functions

void JsonResponse::sendSuccess (HttpResponse &res, const nlohmann::json &data, const std::string &message)
 
void JsonResponse::sendCreated (HttpResponse &res, const nlohmann::json &data, const std::string &message)
 
void JsonResponse::sendMessage (HttpResponse &res, const std::string &message)
 
void JsonResponse::sendNoContent (HttpResponse &res)
 
void JsonResponse::sendJson (HttpResponse &res, const nlohmann::json &raw, int statusCode)
 
void JsonResponse::sendError (HttpResponse &res, int statusCode, const std::string &code, const std::string &message)