RESTinio
|
An interface for one entry of easy_parser-based router. More...
#include <easy_parser_router.hpp>
Public Types | |
using | actual_request_handle_t = generic_request_handle_t< Extra_Data > |
Public Member Functions | |
virtual | ~router_entry_t ()=default |
virtual RESTINIO_NODISCARD expected_t< request_handling_status_t, no_match_t > | try_handle (const actual_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.
Extra_Data | The type of extra-data incorporated into a request object. This type is added to router_entry_t in v.0.6.13. |
Definition at line 55 of file easy_parser_router.hpp.
using restinio::router::easy_parser_router::impl::router_entry_t< Extra_Data >::actual_request_handle_t = generic_request_handle_t< Extra_Data > |
Definition at line 58 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< Extra_Data, Producer, Handler >.