Crow  1.0
A C++ microframework for the web
crow::RuleParameterTraits< T > Struct Template Reference

Allows the user to assign parameters using functions. More...

Inheritance diagram for crow::RuleParameterTraits< T >:

Public Types

using self_t = T
 

Public Member Functions

WebSocketRulewebsocket ()
 
self_tname (std::string name) noexcept
 
self_tmethods (HTTPMethod method)
 
template<typename... MethodArgs>
self_tmethods (HTTPMethod method, MethodArgs... args_method)
 

Detailed Description

template<typename T>
struct crow::RuleParameterTraits< T >

Allows the user to assign parameters using functions.

rule.name("name").methods(HTTPMethod::POST)

Member Typedef Documentation

◆ self_t

template<typename T >
using crow::RuleParameterTraits< T >::self_t = T

Member Function Documentation

◆ websocket()

template<typename T >
WebSocketRule& crow::RuleParameterTraits< T >::websocket ( )
inline

◆ name()

template<typename T >
self_t& crow::RuleParameterTraits< T >::name ( std::string  name)
inlinenoexcept
Here is the caller graph for this function:

◆ methods() [1/2]

template<typename T >
self_t& crow::RuleParameterTraits< T >::methods ( HTTPMethod  method)
inline
Here is the caller graph for this function:

◆ methods() [2/2]

template<typename T >
template<typename... MethodArgs>
self_t& crow::RuleParameterTraits< T >::methods ( HTTPMethod  method,
MethodArgs...  args_method 
)
inline

The documentation for this struct was generated from the following file: