MCPcopy Create free account
hub / github.com/MITK/MITK / SendJsonResponse

Method SendJsonResponse

Modules/RESTAPI/src/mitkDataStorageController.cpp:709–713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

707}
708
709void DataStorageController::SendJsonResponse(httplib::Response& res, int status, const nlohmann::json& body)
710{
711 res.status = status;
712 res.set_content(body.dump(), "application/json");
713}
714
715void DataStorageController::SendErrorResponse(httplib::Response& res, int status, const nlohmann::json& error)
716{

Calls

no outgoing calls

Tested by

no test coverage detected