|
Common System 0.2.0
Common interfaces and patterns for system integration
|
Abstract interface for HTTP client implementations. More...
#include <http_client_interface.h>


Public Member Functions | |
| virtual | ~IHttpClient ()=default |
| virtual ::kcenon::common::Result< http_response > | send (const http_request &request)=0 |
| Send an HTTP request synchronously. | |
| virtual bool | is_available () const =0 |
| Check if the HTTP client is available and properly configured. | |
| virtual std::string | get_implementation_name () const |
| Get the implementation name for logging/debugging. | |
Abstract interface for HTTP client implementations.
This interface defines the contract for HTTP client implementations, allowing modules to make HTTP requests without direct dependencies on specific HTTP libraries (e.g., libcurl, ASIO, etc.).
Example usage:
Definition at line 211 of file http_client_interface.h.
|
virtualdefault |
|
inlinenodiscardvirtual |
Get the implementation name for logging/debugging.
Implemented in kcenon::common::interfaces::null_http_client.
Definition at line 232 of file http_client_interface.h.
|
nodiscardpure virtual |
Check if the HTTP client is available and properly configured.
Implemented in kcenon::common::interfaces::null_http_client.
|
pure virtual |
Send an HTTP request synchronously.
| request | The HTTP request to send |
Implemented in kcenon::common::interfaces::null_http_client.