JSON-RPC 2.0
JSON-RPC 2.0 Modern C++ Library
|
Classes | |
class | Dispatcher |
class | PendingRequest |
A class representing a pending RPC request. More... | |
class | Request |
class | Response |
class | RpcEndpoint |
class | TypedMethodHandler |
class | TypedNotificationHandler |
Concepts | |
concept | FromJson |
concept | ToJson |
concept | JsonConvertible |
concept | NotJsonLike |
concept | HasMessageMethod |
Typedefs | |
using | RequestId = std::variant<int64_t, std::string> |
using | MethodCallHandler |
using | NotificationHandler = void(const std::optional<nlohmann::json>& params) |
using | Handler = std::variant<MethodCallHandler, NotificationHandler> |
Variables | |
constexpr std::string_view | kJsonRpcVersion = "2.0" |
constexpr auto | kDefaultRequestTimeout = std::chrono::milliseconds(30000) |
constexpr size_t | kDefaultMaxBatchSize = 100 |
using jsonrpc::endpoint::Handler = std::variant<MethodCallHandler, NotificationHandler> |
using jsonrpc::endpoint::NotificationHandler = void(const std::optional<nlohmann::json>& params) |
using jsonrpc::endpoint::RequestId = std::variant<int64_t, std::string> |
|
constexpr |
|
constexpr |
|
constexpr |
Definition at line 13 of file types.hpp.
Referenced by jsonrpc::endpoint::Response::CreateError(), jsonrpc::endpoint::Response::CreateError(), jsonrpc::endpoint::Response::CreateSuccess(), jsonrpc::endpoint::Request::FromJson(), and jsonrpc::endpoint::Request::ToJson().