RESTinio
|
An actual implementation of router_entry interface. More...
#include <easy_parser_router.hpp>
Public Member Functions | |
template<typename Method_Matcher , typename Producer_Arg , typename Handler_Arg > | |
actual_router_entry_t (Method_Matcher &&method_matcher, Producer_Arg &&producer, Handler_Arg &&handler) | |
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 override |
An attempt to match a request against the route. More... | |
![]() | |
virtual | ~router_entry_t ()=default |
Private Attributes | |
restinio::router::impl::buffered_matcher_holder_t | m_method_matcher |
HTTP method to match. More... | |
Producer | m_producer |
Parser of a route and producer of argument(s) for request handler. More... | |
Handler | m_handler |
Request handler to be used. More... | |
An actual implementation of router_entry interface.
Producer | A type of producer that parses a route and produces a value to be used as argument(s) for request handler. |
Handle | A type of request handler. |
Definition at line 92 of file easy_parser_router.hpp.
|
inline |
Definition at line 108 of file easy_parser_router.hpp.
|
inlineoverridevirtual |
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.
Implements restinio::router::easy_parser_router::impl::router_entry_t.
Definition at line 120 of file easy_parser_router.hpp.
|
private |
Request handler to be used.
Definition at line 101 of file easy_parser_router.hpp.
|
private |
HTTP method to match.
Definition at line 95 of file easy_parser_router.hpp.
|
private |
Parser of a route and producer of argument(s) for request handler.
Definition at line 98 of file easy_parser_router.hpp.