Template Struct server

Struct Documentation

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

Todo:

write docs

Public Types

typedef LoggerT logger_type
typedef CacheT cache_type
typedef AuxT auxiliary_type
typedef udho::attachment<auxiliary_type, logger_type, cache_type> attachment_type
typedef server<auxiliary_type, logger_type, 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 http_request_type request_type

Public Functions

server(boost::asio::io_service &io, logger_type &logger)
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