|
| std::variant< FindError, Value > | getRoute (const std::vector< std::string_view > &route, Method::HttpMethod method) const |
|
constexpr void | pushRoute (const Value &value, Method::HttpMethod method, const std::vector< std::string_view > &route) |
◆ getRoute()
template<typename Value>
| std::variant< FindError, Value > magpie::dsa::RadixTree< Value >::getRoute |
( |
const std::vector< std::string_view > & | route, |
|
|
Method::HttpMethod | method ) const |
|
inline |
Takes an input route and method and identifies the associated handler (the Value type).
- Returns
- either a Value, meaning the underlying route type, or a FindError. See FindError for a description of its possible values.
The documentation for this class was generated from the following file: