feat(interfaces): add unified transport interfaces (IHttpClient, IUdpClient)#235
Merged
Conversation
…Client) Add abstract interfaces for HTTP and UDP client transport layers to enable clean dependency injection across the ecosystem. This resolves the circular dependency risk between monitoring_system and network_system. New interfaces: - IHttpClient: HTTP client interface with request/response structs - IUdpClient: UDP client interface with connected and connectionless modes - null_http_client/null_udp_client: No-op implementations for disabled transport Features: - Builder pattern support for HTTP requests (set_content_type, set_authorization) - Response status helpers (is_success, is_client_error, is_server_error) - UDP statistics tracking with packets_sent, bytes_sent, send_failures - String convenience methods for UDP send operations - Factory function types for creating client instances The interfaces are header-only with no runtime dependencies, matching the existing common_system architecture. Closes #233
Add documentation for IHttpClient and IUdpClient interfaces in both English and Korean changelog files.
kcenon
added a commit
that referenced
this pull request
Apr 13, 2026
…Client) (#235) * feat(interfaces): add unified transport interfaces (IHttpClient, IUdpClient) Add abstract interfaces for HTTP and UDP client transport layers to enable clean dependency injection across the ecosystem. This resolves the circular dependency risk between monitoring_system and network_system. New interfaces: - IHttpClient: HTTP client interface with request/response structs - IUdpClient: UDP client interface with connected and connectionless modes - null_http_client/null_udp_client: No-op implementations for disabled transport Features: - Builder pattern support for HTTP requests (set_content_type, set_authorization) - Response status helpers (is_success, is_client_error, is_server_error) - UDP statistics tracking with packets_sent, bytes_sent, send_failures - String convenience methods for UDP send operations - Factory function types for creating client instances The interfaces are header-only with no runtime dependencies, matching the existing common_system architecture. Closes #233 * docs: update changelog for transport interfaces Add documentation for IHttpClient and IUdpClient interfaces in both English and Korean changelog files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add abstract transport interfaces to common_system for dependency injection across the ecosystem, resolving circular dependency risks between monitoring_system and network_system.
Priority: CRITICAL - This is a blocking dependency for Epic #232 (Cross-Module Circular Dependency Resolution)
Changes
New Files
include/kcenon/common/interfaces/transport/http_client_interface.h- HTTP client interfaceinclude/kcenon/common/interfaces/transport/udp_client_interface.h- UDP client interfaceinclude/kcenon/common/interfaces/transport.h- Umbrella headertests/transport_interface_test.cpp- Unit tests (26 tests)Interface Features
IHttpClient
http_request/http_responsestructs with builder patternis_success(),is_client_error(),is_server_error()HttpClientFactoryandIHttpClientProviderfor DInull_http_clientno-op implementationIUdpClient
connect()+send()with kernel routing optimizationsend_to()for ad-hoc deliverypackets_sent,bytes_sent,send_failuresUdpClientFactoryandIUdpClientProviderfor DInull_udp_clientno-op implementationDesign Decisions
std::spanfor zero-copy data transferTest Plan
Downstream Impact
IHttpClient,IUdpClientadaptersIHttpClient,IUdpClientfor clientsRelated Issues