Template Struct bridge¶
Defined in File bridge.h
Struct Documentation¶
-
template<typename
ConfigT>
structudho::bridge¶ - Todo:
write docs
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, typenameGroupT>
std::stringrender(const std::string &path, const udho::detail::context_common<self_type, RequestT> &ctx, ::udho::lookup_table<GroupT> &scope) const¶
-
template<typename
RequestT, typenameDataT>
std::stringrender(const std::string &path, const udho::detail::context_common<self_type, RequestT> &ctx, ::udho::prepared<DataT> &data) const¶
-
template<typename
RequestT, typenameU, typenameV>
std::stringrender(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::stringrender(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)¶