Template Struct context¶
Defined in File context.h
Inheritance Relationships¶
Base Type¶
public udho::detail::context_common< AuxT, RequestT >(Template Struct context_common)
Struct Documentation¶
-
template<typename
AuxT, typenameRequestT, typenameShadowT>
structudho::context: public udho::detail::context_common<AuxT, RequestT>¶ A Stateful context passed to all callables along with the arguments. The context is always the first argument to the callable. Even if the callable takes no arguments, it must take the context as the first argument. A stateful context should be used in callables that need to use session states.
- Note
instead of instantiating this template directly use udho::contexts::stateful
- Template Parameters
AuxT: bridge between the server and the callableRequestT: HTTP request typeShadowT: the session data structure
Public Types
-
typedef detail::context_common<AuxT, RequestT>
base_type¶
-
typedef shadow_type::key_type
key_type¶
-
typedef context<AuxT, request_type, shadow_type>
self_type¶
-
typedef udho::session_<request_type, shadow_type>
session_type¶
Public Functions
-
template<typename ...
V>context(AuxT &aux, const RequestT &request, udho::cache::shadow<key_type, V...> &shadow)¶
-
template<typename
OtherShadowT>context(context<AuxT, RequestT, OtherShadowT> &other)¶
-
session_type &
session()¶ access the HTTP Session
Public Members
-
session_type
_session¶