Default rule created when CROW_ROUTE is called. More...
Public Types | |
using | self_t = TaggedRule< Args... > |
Public Member Functions | |
TaggedRule (std::string rule) | |
void | validate () override |
template<typename Func > | |
void | operator() (Func &&f) |
template<typename Func > | |
void | operator() (std::string name, Func &&f) |
void | handle (request &req, response &res, const routing_params ¶ms) override |
template<typename App , typename... Middlewares> | |
crow::detail::handler_call_bridge< TaggedRule< Args... >, App, Middlewares... > | middlewares () |
Enable local middleware for this handler. More... | |
std::unique_ptr< BaseRule > | upgrade () |
virtual void | handle_upgrade (const request &, response &res, SocketAdaptor &&) |
uint32_t | get_methods () |
template<typename F > | |
void | foreach_method (F f) |
const std::string & | rule () |
WebSocketRule & | websocket () |
self_t & | name (std::string name) noexcept |
self_t & | methods (HTTPMethod method) |
self_t & | methods (HTTPMethod method, MethodArgs... args_method) |
Public Attributes | |
std::string | custom_templates_base |
Protected Attributes | |
uint32_t | methods_ {1 << static_cast<int>(HTTPMethod::Get)} |
std::string | rule_ |
std::string | name_ |
std::unique_ptr< BaseRule > | rule_to_upgrade_ |
Private Attributes | |
std::function< void(crow::request &, crow::response &, Args...)> | handler_ |
Default rule created when CROW_ROUTE is called.
using crow::TaggedRule< Args >::self_t = TaggedRule<Args...> |
|
inline |
|
inlineoverridevirtual |
Implements crow::BaseRule.
|
inline |
|
inline |
|
inlineoverridevirtual |
|
inline |
Enable local middleware for this handler.
|
inlineinherited |
|
inlinevirtualinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinenoexceptinherited |
|
inlineinherited |
|
inlineinherited |
|
private |
|
inherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |