|
| TaggedRule (std::string rule) |
|
void | validate () override |
|
template<typename Func > |
std::enable_if< black_magic::CallHelper< Func, black_magic::S< Args... > >::value, void >::type | operator() (Func &&f) |
|
template<typename Func > |
std::enable_if<!black_magic::CallHelper< Func, black_magic::S< Args... > >::value &&black_magic::CallHelper< Func, black_magic::S< crow::request, Args... > >::value, void >::type | operator() (Func &&f) |
|
template<typename Func > |
std::enable_if<!black_magic::CallHelper< Func, black_magic::S< Args... > >::value &&!black_magic::CallHelper< Func, black_magic::S< crow::request, Args... > >::value &&black_magic::CallHelper< Func, black_magic::S< crow::response &, Args... > >::value, void >::type | operator() (Func &&f) |
|
template<typename Func > |
std::enable_if<!black_magic::CallHelper< Func, black_magic::S< Args... > >::value &&!black_magic::CallHelper< Func, black_magic::S< crow::request, Args... > >::value &&!black_magic::CallHelper< Func, black_magic::S< crow::response &, Args... > >::value, void >::type | operator() (Func &&f) |
|
template<typename Func > |
void | operator() (std::string name, Func &&f) |
|
void | handle (const request &req, response &res, const routing_params ¶ms) override |
|
| BaseRule (std::string rule) |
|
virtual void | validate ()=0 |
|
std::unique_ptr< BaseRule > | upgrade () |
|
virtual void | handle (const request &, response &, const routing_params &)=0 |
|
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) |
|
template<typename ... Args>
class crow::TaggedRule< Args >
Default rule created when CROW_ROUTE is called.