#include <routing.h>
|
| | DynamicRule (std::string rule) |
| |
| void | validate () override |
| |
| void | handle (const request &req, response &res, const routing_params ¶ms) override |
| |
| template<typename Func > |
| void | operator() (Func f) |
| |
| template<typename Func , unsigned ... Indices> |
| std::function< void(const request &, response &, const routing_params &)> | wrap (Func f, black_magic::seq< Indices... >) |
| |
| template<typename Func > |
| void | operator() (std::string name, Func &&f) |
| |
| | BaseRule (std::string rule) |
| |
| virtual | ~BaseRule () |
| |
| std::unique_ptr< BaseRule > | upgrade () |
| |
| virtual void | handle_upgrade (const request &, response &res, SocketAdaptor &&) |
| |
| uint32_t | get_methods () |
| |
| WebSocketRule & | websocket () |
| |
| self_t & | name (std::string name) noexcept |
| |
| self_t & | methods (HTTPMethod method) |
| |
| self_t & | methods (HTTPMethod method, MethodArgs ... args_method) |
| |
◆ DynamicRule()
| crow::DynamicRule::DynamicRule |
( |
std::string |
rule | ) |
|
|
inline |
◆ handle()
◆ operator()() [1/2]
template<typename Func >
| void crow::DynamicRule::operator() |
( |
Func |
f | ) |
|
|
inline |
◆ operator()() [2/2]
template<typename Func >
| void crow::DynamicRule::operator() |
( |
std::string |
name, |
|
|
Func && |
f |
|
) |
| |
|
inline |
◆ validate()
| void crow::DynamicRule::validate |
( |
| ) |
|
|
inlineoverridevirtual |
◆ wrap()
template<typename Func , unsigned ... Indices>
◆ erased_handler_
The documentation for this class was generated from the following file: