RESTinio
|
A simple method_matcher that compares just one user-specified value. More...
#include <method_matcher.hpp>
Public Member Functions | |
simple_matcher_t (http_method_id_t method) | |
RESTINIO_NODISCARD bool | match (const http_method_id_t &method) const noexcept override |
Is the specified method can be applied to a route? More... | |
![]() | |
method_matcher_t (const method_matcher_t &)=default | |
method_matcher_t & | operator= (const method_matcher_t &)=default |
method_matcher_t (method_matcher_t &&)=default | |
method_matcher_t & | operator= (method_matcher_t &&)=default |
method_matcher_t ()=default | |
virtual | ~method_matcher_t ()=default |
virtual RESTINIO_NODISCARD bool | match (const http_method_id_t &method) const noexcept=0 |
Is the specified method can be applied to a route? More... | |
Private Attributes | |
http_method_id_t | m_method |
A simple method_matcher that compares just one user-specified value.
The allowed value is specified in the constructor and can't be changed after that.
Definition at line 110 of file method_matcher.hpp.
|
inline |
Definition at line 115 of file method_matcher.hpp.
|
inlineoverridevirtualnoexcept |
Is the specified method can be applied to a route?
true | if method can be applied to a route. |
false | if method can't be applied to a route. |
Implements restinio::router::method_matcher_t.
Definition at line 121 of file method_matcher.hpp.
|
private |
Definition at line 112 of file method_matcher.hpp.