|
Common System 0.2.0
Common interfaces and patterns for system integration
|
Null implementation for when HTTP transport is disabled. More...
#include <http_client_interface.h>


Public Member Functions | |
| ::kcenon::common::Result< http_response > | send (const http_request &) override |
| Send an HTTP request synchronously. | |
| bool | is_available () const override |
| Check if the HTTP client is available and properly configured. | |
| std::string | get_implementation_name () const override |
| Get the implementation name for logging/debugging. | |
Public Member Functions inherited from kcenon::common::interfaces::IHttpClient | |
| virtual | ~IHttpClient ()=default |
Null implementation for when HTTP transport is disabled.
This implementation always returns errors, useful for testing or when HTTP functionality is intentionally disabled.
Definition at line 244 of file http_client_interface.h.
|
inlinenodiscardoverridevirtual |
Get the implementation name for logging/debugging.
Implements kcenon::common::interfaces::IHttpClient.
Definition at line 257 of file http_client_interface.h.
|
inlinenodiscardoverridevirtual |
Check if the HTTP client is available and properly configured.
Implements kcenon::common::interfaces::IHttpClient.
Definition at line 253 of file http_client_interface.h.
|
inlineoverridevirtual |
Send an HTTP request synchronously.
| request | The HTTP request to send |
Implements kcenon::common::interfaces::IHttpClient.
Definition at line 246 of file http_client_interface.h.
References kcenon::common::error_codes::NOT_INITIALIZED.