diff --git a/ballerina/commons.bal b/ballerina/commons.bal index e6d2ba56..1e30a4c5 100644 --- a/ballerina/commons.bal +++ b/ballerina/commons.bal @@ -357,6 +357,7 @@ public final UnsubscriptionDeniedError UNSUBSCRIPTION_DENIED_ERROR = error Unsub # + poolConfig - Configurations associated with request pooling # + auth - Configurations related to client authentication # + retryConfig - Configurations associated with retrying +# + proxy - Proxy server settings if requests need to go through a proxy # + responseLimits - Configurations associated with inbound response size limits # + secureSocket - SSL/TLS related options # + circuitBreaker - Configurations associated with the behaviour of the Circuit Breaker @@ -368,6 +369,7 @@ public type ClientConfiguration record {| http:PoolConfiguration poolConfig?; http:ClientAuthConfig auth?; http:RetryConfig retryConfig?; + http:ProxyConfig? proxy = (); http:ResponseLimitConfigs responseLimits = {}; http:ClientSecureSocket secureSocket?; http:CircuitBreakerConfig circuitBreaker?; @@ -392,11 +394,12 @@ isolated function retrieveHttpClientConfig(ClientConfiguration config) returns h http1Settings: config.http1Settings, http2Settings: config.http2Settings, timeout: config.timeout, - poolConfig: config?.poolConfig, - auth: config?.auth, - retryConfig: config?.retryConfig, + poolConfig: config.poolConfig, + auth: config.auth, + retryConfig: config.retryConfig, + proxy: config.proxy, responseLimits: config.responseLimits, - secureSocket: config?.secureSocket, - circuitBreaker: config?.circuitBreaker + secureSocket: config.secureSocket, + circuitBreaker: config.circuitBreaker }; } diff --git a/changelog.md b/changelog.md index c5ee3851..677bfee5 100644 --- a/changelog.md +++ b/changelog.md @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added +- [Allow `http:ProxyConfig` for the clients in the `websubhub` module](https://github.com/ballerina-platform/ballerina-library/issues/8496) + +## [1.14.0] - 2025-03-05 + ### Changed - [Introduce dynamic parameter order for the `websubhub:Service` remote methods](https://github.com/ballerina-platform/ballerina-library/issues/7600)