Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
rpc::impl::ProductionAPIVersionParser Class Reference
Inheritance diagram for rpc::impl::ProductionAPIVersionParser:
Collaboration diagram for rpc::impl::ProductionAPIVersionParser:

Public Member Functions

 ProductionAPIVersionParser (uint32_t defaultVersion=kAPI_VERSION_DEFAULT, uint32_t minVersion=kAPI_VERSION_MIN, uint32_t maxVersion=kAPI_VERSION_MAX)
 
 ProductionAPIVersionParser (util::config::ObjectView const &config)
 
std::expected< uint32_t, std::string > parse (boost::json::object const &request) const override
 Extracts API version information from a JSON object.
 
uint32_t getDefaultVersion () const
 
uint32_t getMinVersion () const
 
uint32_t getMaxVersion () const
 
- Public Member Functions inherited from rpc::APIVersionParser

Member Function Documentation

◆ parse()

std::expected< uint32_t, std::string > rpc::impl::ProductionAPIVersionParser::parse ( boost::json::object const & request) const
overridevirtual

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

Implements rpc::APIVersionParser.


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