CCF
Loading...
Searching...
No Matches
Namespaces | Functions
json_handler.cpp File Reference
#include "ccf/json_handler.h"
#include "ccf/ds/logger.h"
#include "ccf/http_accept.h"
#include "ccf/http_consts.h"
#include "ccf/odata_error.h"
#include "ccf/redirect.h"
#include "ccf/rpc_context.h"
#include "ccf/rpc_exception.h"
#include <llhttp/llhttp.h>

Namespaces

namespace  ccf
 
namespace  ccf::jsonhandler
 

Functions

nlohmann::json ccf::jsonhandler::get_json_params (const std::shared_ptr< ccf::RpcContext > &ctx)
 
void ccf::jsonhandler::set_response (JsonAdapterResponse &&res, std::shared_ptr< ccf::RpcContext > &ctx)
 
jsonhandler::JsonAdapterResponse ccf::make_success ()
 
jsonhandler::JsonAdapterResponse ccf::make_success (nlohmann::json &&result_payload)
 
jsonhandler::JsonAdapterResponse ccf::make_success (const nlohmann::json &result_payload)
 
jsonhandler::JsonAdapterResponse ccf::make_error (ccf::http_status status, const std::string &code, const std::string &msg)
 
jsonhandler::JsonAdapterResponse ccf::make_redirect (ccf::http_status status)
 
endpoints::EndpointFunction ccf::json_adapter (const HandlerJsonParamsAndForward &f)
 
endpoints::ReadOnlyEndpointFunction ccf::json_read_only_adapter (const ReadOnlyHandlerWithJson &f)
 
endpoints::CommandEndpointFunction ccf::json_command_adapter (const CommandHandlerWithJson &f)