xxhr 1.0.0
Examples
API Reference
Main Page
Examples
Namespaces
Namespace Members
Classes
Class List
Class Index
Class Hierarchy
Class Members
xxhr
Timeout
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/
timeout.hpp