JSON RPC
JSON-RPC 2.0 library for C++
|
Defines the JSON RPC dispatcher class. More...
#include <cassert>
#include <functional>
#include <memory>
#include <string>
#include <string_view>
#include <tuple>
#include <type_traits>
#include <utility>
#include <nlohmann/json.hpp>
#include "details.h"
#include "exception.h"
#include "export.h"
Go to the source code of this file.
Classes | |
class | wwa::json_rpc::dispatcher |
A class that manages JSON RPC method handlers and processes JSON RPC requests. More... | |
Namespaces | |
namespace | wwa |
namespace | wwa::json_rpc |
Library namespace. | |
Defines the JSON RPC dispatcher class.
This file contains the definition of the dispatcher
class, which is responsible for managing JSON RPC method handlers and processing JSON RPC requests. The dispatcher supports adding various types of handlers, including plain functions, static class methods, lambda functions, and member functions. These handlers can accept and return values that are convertible to and from nlohmann::json
values.
Definition in file dispatcher.h.