RESTinio
|
An interface of method_matcher. More...
#include <method_matcher.hpp>
Public Member Functions | |
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... | |
An interface of method_matcher.
Method_matchers are used by routers to detect an applicability of an incoming request to a route. If method_matcher_t::match() returns true
then HTTP method from an incoming request is applicable to a route.
Definition at line 38 of file method_matcher.hpp.
|
default |
|
default |
|
default |
|
virtualdefault |
|
pure virtualnoexcept |
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. |
Implemented in restinio::router::impl::allocated_matcher_proxy_t< Matcher >, restinio::router::impl::simple_matcher_t, restinio::router::impl::fixed_size_any_of_matcher_t< Size >, restinio::router::impl::fixed_size_none_of_matcher_t< Size >, restinio::router::dynamic_any_of_methods_matcher_t, and restinio::router::dynamic_none_of_methods_matcher_t.
|
default |
|
default |