An implementation of method_matcher that allows a method if it isn't found in a dynamic list of disabled methods.
More...
#include <method_matcher.hpp>
An implementation of method_matcher that allows a method if it isn't found in a dynamic list of disabled methods.
Usage example:
if(
config.handle_get_method())
matcher.
add(restinio::http_method_get());
if(
config.handle_head_method())
matcher.
add(restinio::http_method_head());
router->add_handler(matcher,
"/users/:id",
[](const auto & req, auto & params) {...});
An implementation of method_matcher that allows a method if it isn't found in a dynamic list of disab...
dynamic_none_of_methods_matcher_t & add(http_method_id_t method)
- Since
- v.0.6.6
Definition at line 536 of file method_matcher.hpp.
◆ dynamic_none_of_methods_matcher_t()
restinio::router::dynamic_none_of_methods_matcher_t::dynamic_none_of_methods_matcher_t |
( |
| ) |
|
|
default |
◆ add()
◆ empty()
RESTINIO_NODISCARD bool restinio::router::dynamic_none_of_methods_matcher_t::empty |
( |
| ) |
const |
|
inlinenoexcept |
◆ match()
|
inlineoverridevirtualnoexcept |
◆ size()
RESTINIO_NODISCARD std::size_t restinio::router::dynamic_none_of_methods_matcher_t::size |
( |
| ) |
const |
|
inlinenoexcept |
◆ m_methods
std::vector< http_method_id_t > restinio::router::dynamic_none_of_methods_matcher_t::m_methods |
|
private |
The documentation for this class was generated from the following file: