Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
rpc::APIVersionParser Class Referenceabstract

A baseclass for API version helper. More...

#include <APIVersion.hpp>

Inheritance diagram for rpc::APIVersionParser:

Public Member Functions

virtual std::expected< uint32_t, std::string > parse (boost::json::object const &request) const =0
 Extracts API version information from a JSON object.
 

Detailed Description

A baseclass for API version helper.

Member Function Documentation

◆ parse()

virtual std::expected< uint32_t, std::string > rpc::APIVersionParser::parse ( boost::json::object const & request) const
pure virtual

Extracts API version information from a JSON object.

Parameters
requestA JSON object representing the request
Returns
The specified API version if contained in the JSON object; error string otherwise

Implemented in rpc::impl::ProductionAPIVersionParser.


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