Template Struct async_result¶
Defined in File client.h
Inheritance Relationships¶
Derived Types¶
public udho::detail::http_client_connection< ContextT >(Template Struct http_client_connection)public udho::detail::https_client_connection< ContextT >(Template Struct https_client_connection)
Struct Documentation¶
-
template<typename
ContextT>
structudho::detail::async_result¶ Subclassed by udho::detail::http_client_connection< ContextT >, udho::detail::https_client_connection< ContextT >
Public Types
-
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(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(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)¶
-
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¶
-
typedef async_result<ContextT>