CCF
Loading...
Searching...
No Matches
Typedefs | Functions
ccf::jsonhandler Namespace Reference

Typedefs

using JsonAdapterResponse = std::variant< ErrorDetails, RedirectDetails, nlohmann::json >
 

Functions

nlohmann::json get_json_params (const std::shared_ptr< ccf::RpcContext > &ctx)
 
void set_response (JsonAdapterResponse &&res, std::shared_ptr< ccf::RpcContext > &ctx)
 

Typedef Documentation

◆ JsonAdapterResponse

using ccf::jsonhandler::JsonAdapterResponse = typedef std::variant<ErrorDetails, RedirectDetails, nlohmann::json>

Function Documentation

◆ get_json_params()

nlohmann::json ccf::jsonhandler::get_json_params ( const std::shared_ptr< ccf::RpcContext > &  ctx)

◆ set_response()

void ccf::jsonhandler::set_response ( JsonAdapterResponse &&  res,
std::shared_ptr< ccf::RpcContext > &  ctx 
)