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... | |
route_matcher_t ()=default | |
route_matcher_t (route_matcher_t &&)=default | |
bool | match_route (string_view_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, route_params_t ¶meters) const |
Private Attributes | |
http_method_id_t | m_method |
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 278 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 282 of file express.hpp.
using restinio::router::impl::route_matcher_t< Regex_Engine >::regex_t = typename Regex_Engine::compiled_regex_t |
Definition at line 281 of file express.hpp.
|
inline |
Creates matcher with a given parameters.
Definition at line 285 of file express.hpp.
|
default |
|
default |
|
inline |
Try to match a given request target with this route.
Definition at line 301 of file express.hpp.
|
inline |
Definition at line 368 of file express.hpp.
|
private |
HTTP method to match.
Definition at line 377 of file express.hpp.
|
private |
Buffer for named parameters names string views.
Definition at line 383 of file express.hpp.
|
private |
Parameters values.
Definition at line 386 of file express.hpp.
|
private |
Regex of a given route.
Definition at line 380 of file express.hpp.