RESTinio
|
A matcher for a given path. More...
#include <express.hpp>
Public Types | |
using | regex_t = typename Regex_Engine::compiled_regex_t |
using | match_results_t = typename Regex_Engine::match_results_t |
Public Member Functions | |
route_matcher_t (http_method_id_t method, regex_t route_regex, std::shared_ptr< std::string > named_params_buffer, param_appender_sequence_t param_appender_sequence) | |
Creates matcher with a given parameters. More... | |
template<typename Method_Matcher > | |
route_matcher_t (Method_Matcher &&method_matcher, regex_t route_regex, std::shared_ptr< std::string > named_params_buffer, param_appender_sequence_t param_appender_sequence) | |
route_matcher_t ()=default | |
route_matcher_t (route_matcher_t &&)=default | |
bool | match_route (target_path_holder_t &target_path, route_params_t ¶meters) const |
Try to match a given request target with this route. More... | |
bool | operator() (const http_request_header_t &h, target_path_holder_t &target_path, route_params_t ¶meters) const |
Private Attributes | |
buffered_matcher_holder_t | m_method_matcher |
HTTP method to match. More... | |
regex_t | m_route_regex |
Regex of a given route. More... | |
std::shared_ptr< std::string > | m_named_params_buffer |
Buffer for named parameters names string views. More... | |
param_appender_sequence_t | m_param_appender_sequence |
Parameters values. More... | |
A matcher for a given path.
Definition at line 281 of file express.hpp.
using restinio::router::impl::route_matcher_t< Regex_Engine >::match_results_t = typename Regex_Engine::match_results_t |
Definition at line 285 of file express.hpp.
using restinio::router::impl::route_matcher_t< Regex_Engine >::regex_t = typename Regex_Engine::compiled_regex_t |
Definition at line 284 of file express.hpp.
|
inline |
Creates matcher with a given parameters.
Definition at line 288 of file express.hpp.
|
inline |
Creates matcher with a given parameters.
This constructor is intended for cases where method_matcher is specified as object of class derived from method_matcher_t.
Definition at line 309 of file express.hpp.
|
default |
|
default |
|
inline |
Try to match a given request target with this route.
Definition at line 328 of file express.hpp.
|
inline |
Definition at line 394 of file express.hpp.
|
private |
HTTP method to match.
Definition at line 405 of file express.hpp.
|
private |
Buffer for named parameters names string views.
Definition at line 411 of file express.hpp.
|
private |
Parameters values.
Definition at line 414 of file express.hpp.
|
private |
Regex of a given route.
Definition at line 408 of file express.hpp.