RESTinio
|
An actual implementation of router_entry interface. More...
#include <easy_parser_router.hpp>
Public Types | |
using | actual_request_handle_t = typename router_entry_t< Extra_Data >::actual_request_handle_t |
![]() | |
using | actual_request_handle_t = generic_request_handle_t< Extra_Data > |
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 actual_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 |
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... | |
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. |
Extra_Data | The type of extra-data incorporated into a request object. This type is added to actual_router_entry_t in v.0.6.13. |
Handle | A type of request handler. |
Definition at line 106 of file easy_parser_router.hpp.
using restinio::router::easy_parser_router::impl::actual_router_entry_t< Extra_Data, Producer, Handler >::actual_request_handle_t = typename router_entry_t<Extra_Data>::actual_request_handle_t |
Definition at line 121 of file easy_parser_router.hpp.
|
inline |
Definition at line 128 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< Extra_Data >.
Definition at line 140 of file easy_parser_router.hpp.
|
private |
Request handler to be used.
Definition at line 118 of file easy_parser_router.hpp.
|
private |
HTTP method to match.
Definition at line 112 of file easy_parser_router.hpp.
|
private |
Parser of a route and producer of argument(s) for request handler.
Definition at line 115 of file easy_parser_router.hpp.