JSON RPC
JSON-RPC 2.0 library for C++
dispatcher.h File Reference

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"
+ Include dependency graph for dispatcher.h:
+ This graph shows which files directly or indirectly include this file:

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.
 

Detailed Description

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.