JSON-RPC 2.0
JSON-RPC 2.0 Modern C++ Library
|
#include <optional>
#include <string>
#include <string_view>
#include <variant>
#include <asio.hpp>
#include <nlohmann/json.hpp>
Go to the source code of this file.
Namespaces | |
namespace | jsonrpc |
namespace | jsonrpc::endpoint |
Typedefs | |
using | jsonrpc::endpoint::RequestId = std::variant<int64_t, std::string> |
using | jsonrpc::endpoint::MethodCallHandler |
using | jsonrpc::endpoint::NotificationHandler = void(const std::optional<nlohmann::json>& params) |
using | jsonrpc::endpoint::Handler = std::variant<MethodCallHandler, NotificationHandler> |
Variables | |
constexpr std::string_view | jsonrpc::endpoint::kJsonRpcVersion = "2.0" |
constexpr auto | jsonrpc::endpoint::kDefaultRequestTimeout = std::chrono::milliseconds(30000) |
constexpr size_t | jsonrpc::endpoint::kDefaultMaxBatchSize = 100 |