|
| 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 |
|
◆ 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
-
request | A 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:
- /__w/clio/clio/src/rpc/common/impl/APIVersionParser.hpp
- /__w/clio/clio/src/rpc/common/impl/APIVersionParser.cpp