Default rule created when CROW_ROUTE is called. More...
#include <routing.h>
Public Types | |
using | self_t = TaggedRule< Args... > |
Public Types inherited from crow::RuleParameterTraits< TaggedRule< Args... > > | |
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 |
Public Member Functions inherited from crow::BaseRule | |
BaseRule (std::string rule) | |
void | set_added () |
bool | is_added () |
std::unique_ptr< BaseRule > | upgrade () |
virtual void | handle_upgrade (const request &, response &res, SocketAdaptor &&) |
virtual void | handle_upgrade (const request &, response &res, SSLAdaptor &&) |
uint32_t | get_methods () |
template<typename F > | |
void | foreach_method (F f) |
const std::string & | rule () |
Public Member Functions inherited from crow::RuleParameterTraits< TaggedRule< Args... > > | |
WebSocketRule< App > & | websocket (App *app) |
self_t & | name (std::string name) noexcept |
self_t & | methods (HTTPMethod method) |
self_t & | methods (HTTPMethod method, MethodArgs... args_method) |
self_t & | middlewares () |
Enable local middleware for this handler. | |
Additional Inherited Members | |
Public Attributes inherited from crow::BaseRule | |
std::string | custom_templates_base |
Protected Attributes inherited from crow::BaseRule | |
uint32_t | methods_ {1 << static_cast<int>(HTTPMethod::Get)} |
std::string | rule_ |
std::string | name_ |
bool | added_ {false} |
std::unique_ptr< BaseRule > | rule_to_upgrade_ |
detail::middleware_indices | mw_indices_ |
Default rule created when CROW_ROUTE is called.