Template Struct bridge

Struct Documentation

template<typename ConfigT>
struct udho::bridge

Todo:

write docs

Public Types

typedef ConfigT configuration_type
typedef bridge<ConfigT> self_type

Public Functions

bridge(boost::asio::io_service &io)
configuration_type &config()
const configuration_type &config() const
boost::filesystem::path docroot() const
boost::filesystem::path tmplroot() const
std::string contents(const boost::filesystem::path &local_path) const
boost::beast::http::response<boost::beast::http::file_body> file(const std::string &path, const ::udho::defs::request_type &req, std::string mime = "") const
template<typename RequestT, typename GroupT>
std::string render(const std::string &path, const udho::detail::context_common<self_type, RequestT> &ctx, ::udho::lookup_table<GroupT> &scope) const
template<typename RequestT, typename DataT>
std::string render(const std::string &path, const udho::detail::context_common<self_type, RequestT> &ctx, ::udho::prepared<DataT> &data) const
template<typename RequestT, typename U, typename V>
std::string render(const std::string &path, const udho::detail::context_common<self_type, RequestT> &ctx, ::udho::prepared_group<U, V> &group) const
template<typename RequestT, typename ...DataT>
std::string render(const std::string &path, const udho::detail::context_common<self_type, RequestT> &ctx, const DataT&... data) const
std::string render(const std::string &path) const
template<typename ContextT>
detail::client_connection_wrapper<ContextT> client(ContextT ctx, udho::config<udho::client_options> options)

Public Members

boost::asio::io_service &_io
configuration_type _config