Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
etl::impl::ForwardingSource Class Reference

Public Member Functions

 ForwardingSource (std::string ip, std::string wsPort, std::chrono::steady_clock::duration forwardingTimeout, std::chrono::steady_clock::duration connTimeout=ForwardingSource::kCONNECTION_TIMEOUT)
 
std::expected< boost::json::object, rpc::ClioErrorforwardToRippled (boost::json::object const &request, std::optional< std::string > const &forwardToRippledClientIp, std::string_view xUserValue, boost::asio::yield_context yield) const
 Forward a request to rippled.
 

Member Function Documentation

◆ forwardToRippled()

std::expected< boost::json::object, rpc::ClioError > etl::impl::ForwardingSource::forwardToRippled ( boost::json::object const & request,
std::optional< std::string > const & forwardToRippledClientIp,
std::string_view xUserValue,
boost::asio::yield_context yield ) const

Forward a request to rippled.

Parameters
requestThe request to forward
forwardToRippledClientIpIP of the client forwarding this request if known
xUserValueOptional value for X-User header
yieldThe coroutine context
Returns
Response on success or error on failure

The documentation for this class was generated from the following files: