RESTinio
|
An interface for one entry of easy_parser-based router. More...
#include <easy_parser_router.hpp>
Public Member Functions | |
virtual | ~router_entry_t ()=default |
virtual RESTINIO_NODISCARD expected_t< request_handling_status_t, no_match_t > | try_handle (const request_handle_t &req, target_path_holder_t &target_path) const =0 |
An attempt to match a request against the route. More... | |
An interface for one entry of easy_parser-based router.
Definition at line 51 of file easy_parser_router.hpp.
|
virtualdefault |
|
pure virtual |
An attempt to match a request against the route.
If match successed the corresponding request handler is called and its return value is returned in form of request_handling_status_t value.
If match failed then an instance of no_match_t is returned.
Implemented in restinio::router::easy_parser_router::impl::actual_router_entry_t< Producer, Handler >.