Template Struct context< AuxT, RequestT, void >

Inheritance Relationships

Base Type

Struct Documentation

template<typename AuxT, typename RequestT>
struct udho::context<AuxT, RequestT, void> : public udho::detail::context_common<AuxT, RequestT>

A Stateless context passed to all callables along with the arguments. he 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 stateless context should be used in callables that need not to use session states.

Note

instead of instantiating this template directly use udho::contexts::stateless

Template Parameters
  • AuxT: bridge between the server and the callable

  • RequestT: HTTP request type

Public Types

typedef void shadow_type
typedef context<AuxT, RequestT, void> self_type
typedef detail::context_common<AuxT, RequestT> base_type

Public Functions

template<typename OtherShadowT>
context(context<AuxT, RequestT, OtherShadowT> &other)