Clio develop
The XRP Ledger API server.
|
A function object that handles the websocket endpoint. More...
#include <WebHandlers.hpp>
Public Member Functions | |
RequestHandler (std::shared_ptr< web::AdminVerificationStrategy > adminVerifier, RpcHandlerType &rpcHandler, web::dosguard::DOSGuardInterface &dosguard) | |
Construct a new RequestHandler object. | |
web::ng::Response | operator() (web::ng::Request const &request, web::ng::ConnectionMetadata &connectionMetadata, web::SubscriptionContextPtr subscriptionContext, boost::asio::yield_context yield) |
The call of the function object. | |
A function object that handles the websocket endpoint.
RpcHandlerType | The type of the RPC handler. |
|
inline |
Construct a new RequestHandler object.
adminVerifier | The AdminVerificationStrategy to use for verifying the connection for admin access. |
rpcHandler | The RPC handler to use for handling the request. |
dosguard | The DOSGuardInterface to use for checking the connection. |
|
inline |
The call of the function object.
request | The request to handle. |
connectionMetadata | The connection metadata. |
subscriptionContext | The subscription context. |
yield | The yield context. |