List of all members
xxhr::Timeout Class Reference

A timeout specification to cut short slow HTTP queries. More...

Detailed Description

GET(
"http://httpbin.org/anything"s,
Timeout{3s},
on_response = [](auto&& resp) {
if (resp.error.code == +ErrorCode::TIMEDOUT)
std::cout << "Timed out !\n";
}
);

The documentation for this class was generated from the following file:
xxhr::on_response
constexpr make_handler_t< on_response_ > on_response
Continuation callback ( i.e. signature : void callback(xxhr::Response)) for the asynchronous HTTP ope...
Definition: handler.hpp:39
xxhr::GET
void GET(Ts &&... ts)
HTTP GET Request.
Definition: api.hpp:41