Template Struct async_result

Inheritance Relationships

Derived Types

Struct Documentation

template<typename ContextT>
struct udho::detail::async_result

Subclassed by udho::detail::http_client_connection< ContextT >, udho::detail::https_client_connection< ContextT >

Public Types

typedef ContextT context_type
typedef async_result<ContextT> self_type
typedef udho::config<udho::client_options> options_type
typedef boost::function<void(ContextT, const boost::beast::http::response<boost::beast::http::string_body>&)> success_callback_type
typedef boost::function<void(ContextT, const boost::beast::error_code&)> error_callback_type
typedef boost::function<void(const boost::beast::error_code&)> error_callback_type_aux
typedef boost::function<void(const boost::beast::http::response<boost::beast::http::string_body>&)> success_callback_type_aux_r
typedef boost::function<void(ContextT, boost::beast::http::status, const std::string&)> success_callback_type_aux_xsc
typedef boost::function<void(ContextT, const std::string&)> success_callback_type_aux_xc
typedef boost::function<void(boost::beast::http::status, const std::string&)> success_callback_type_aux_sc
typedef boost::function<void(const std::string&)> success_callback_type_aux_c
typedef boost::function<void()> finally_callback_type

Public Functions

async_result() = delete
async_result(const context_type &ctx, options_type options)
async_result(const self_type &other) = delete
template<typename KeyT, typename ValueT>
self_type &option(KeyT key, ValueT value)
template<typename KeyT>
auto option(KeyT key) const
void success(const boost::beast::http::response<boost::beast::http::string_body> &res)
void failure(const boost::beast::error_code &ec)
void finish()
self_type &then(success_callback_type cb)
self_type &failed(error_callback_type cb)
self_type &finally(finally_callback_type f)
self_type &error(error_callback_type_aux cb)
self_type &fetch(success_callback_type_aux_xsc cb)
self_type &body(success_callback_type_aux_xc cb)
self_type &after(success_callback_type_aux_r cb)
self_type &done(success_callback_type_aux_sc cb)
self_type &content(success_callback_type_aux_c cb)
context_type &context()

Public Members

context_type _ctx
success_callback_type _callback
error_callback_type _ecallback
finally_callback_type _fcallback
options_type _options