JSON-RPC 2.0
JSON-RPC 2.0 Modern C++ Library
|
Classes | |
class | Dispatcher |
Dispatcher for JSON-RPC requests. More... | |
class | Request |
Represents a JSON-RPC request. More... | |
class | Response |
Represents a JSON-RPC response. More... | |
class | Server |
A JSON-RPC server for handling requests and notifications. More... | |
Typedefs | |
using | ErrorInfoMap |
using | MethodCallHandler |
Type alias for method call handler functions. | |
using | NotificationHandler |
Type alias for notification handler functions. | |
using | Handler = std::variant<MethodCallHandler, NotificationHandler> |
Type alias for a handler which can be either a method call handler or a notification handler. | |
Enumerations | |
enum class | LibErrorKind { kParseError , kInvalidRequest , kMethodNotFound , kInternalError , kServerError } |
Enumeration for library error kinds. More... | |
Definition at line 20 of file response.hpp.
using jsonrpc::server::Handler = std::variant<MethodCallHandler, NotificationHandler> |
|
strong |
Enumeration for library error kinds.
Enumerator | |
---|---|
kParseError | |
kInvalidRequest | |
kMethodNotFound | |
kInternalError | |
kServerError |
Definition at line 12 of file response.hpp.