Interface for modules that provide HTTP client implementations.
More...
#include <http_client_interface.h>
Interface for modules that provide HTTP client implementations.
Definition at line 271 of file http_client_interface.h.
◆ ~IHttpClientProvider()
| virtual kcenon::common::interfaces::IHttpClientProvider::~IHttpClientProvider |
( |
| ) |
|
|
virtualdefault |
◆ create_http_client()
| virtual std::shared_ptr< IHttpClient > kcenon::common::interfaces::IHttpClientProvider::create_http_client |
( |
std::chrono::milliseconds | timeout = std::chrono::milliseconds{30000} | ) |
|
|
pure virtual |
Create a new HTTP client with specific configuration.
- Parameters
-
| timeout | Default timeout for all requests |
- Returns
- Shared pointer to the new HTTP client
◆ get_http_client()
| virtual std::shared_ptr< IHttpClient > kcenon::common::interfaces::IHttpClientProvider::get_http_client |
( |
| ) |
|
|
pure virtual |
Get the default HTTP client instance.
- Returns
- Shared pointer to the HTTP client
The documentation for this interface was generated from the following file: