|
RESTinio
|
An implementation of method_matcher that allows a method if it's found in a dynamic list of allowed methods. More...
#include <method_matcher.hpp>
Public Member Functions | |
| dynamic_any_of_methods_matcher_t ()=default | |
| bool | match (const http_method_id_t &method) const noexcept override |
| Is the specified method can be applied to a route? More... | |
| dynamic_any_of_methods_matcher_t & | add (http_method_id_t method) |
| std::size_t | size () const noexcept |
| bool | empty () const noexcept |
Public Member Functions inherited from restinio::router::method_matcher_t | |
| 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 |
Private Attributes | |
| std::vector< http_method_id_t > | m_methods |
An implementation of method_matcher that allows a method if it's found in a dynamic list of allowed methods.
Usage example:
Definition at line 475 of file method_matcher.hpp.
|
default |
|
inline |
Definition at line 494 of file method_matcher.hpp.
|
inlinenoexcept |
Definition at line 509 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 484 of file method_matcher.hpp.
|
inlinenoexcept |
Definition at line 502 of file method_matcher.hpp.
|
private |
Definition at line 477 of file method_matcher.hpp.
1.8.14