Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
SpecBackend.hpp
1#pragma once
2
3#include <boost/json/value.hpp>
4#include <rpcspec/HandlerFor.hpp>
5#include <rpcspec/RpcSpecView.hpp>
6#include <rpcspec/backends/BoostJson.hpp>
7
8namespace rpc {
9
13using SpecView = spec::RpcSpecView<spec::BoostJsonObjectView>;
14
23template <typename InputT>
24using HandlerFor = spec::HandlerFor<InputT, boost::json::value>;
25
26} // namespace rpc
This namespace contains all the RPC logic and handlers.
Definition AMMHelpers.cpp:17
spec::RpcSpecView< spec::BoostJsonObjectView > SpecView
A type-erased view of a handler's spec, uniform across API versions.
Definition SpecBackend.hpp:13
spec::HandlerFor< InputT, boost::json::value > HandlerFor
The spec-driven base every typed handler inherits.
Definition SpecBackend.hpp:24