Template Struct server< AuxT, void, CacheT >

Struct Documentation

template<typename AuxT, typename CacheT>
struct udho::server<AuxT, void, CacheT>

Public Types

typedef CacheT cache_type
typedef AuxT auxiliary_type
typedef udho::attachment<auxiliary_type, void, cache_type> attachment_type
typedef server<auxiliary_type, void, cache_type> self_type
typedef attachment_type::configuration_type configuration_type
using context_type = udho::context<auxiliary_type, RequestT, attachment_type>
typedef udho::defs::request_type http_request_type
typedef context_type<http_request_type> context
typedef http_request_type request_type

Public Functions

server(boost::asio::io_service &io)
server(const self_type&) = delete
server(self_type &&other) = default
template<typename RouterT>
void serve(RouterT &&router, int port = 9198)
template<typename FeatureT>
auto operator+=(const FeatureT &feature)
configuration_type &config()
const configuration_type &config() const
template<typename ConfigKeyT>
auto operator[](const ConfigKeyT &k)
template<typename ConfigKeyT>
auto operator[](const ConfigKeyT &k) const

Public Members

boost::asio::io_service &_io
attachment_type _attachment