Common System 0.2.0
Common interfaces and patterns for system integration
Loading...
Searching...
No Matches
kcenon::common::concepts::HttpAvailabilityChecker Concept Reference

A type that can check HTTP client availability. More...

#include <transport.h>

Concept definition

template<typename T>
{ t.is_available() } -> std::convertible_to<bool>;
}
A type that can check HTTP client availability.
Definition transport.h:84

Detailed Description

A type that can check HTTP client availability.

Types satisfying this concept can report whether the HTTP client is properly configured and available for making requests.

Example usage:

template<HttpAvailabilityChecker H>
bool can_make_requests(const H& client) {
return client.is_available();
}

Definition at line 84 of file transport.h.