From 7fd302de528150041e39e3442b2f1ace8af3f499 Mon Sep 17 00:00:00 2001 From: Ayesh Almeida Date: Thu, 27 Nov 2025 09:21:36 +0530 Subject: [PATCH 1/4] Allow proxy-configurations for client available in the websubhub module --- ballerina/commons.bal | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/ballerina/commons.bal b/ballerina/commons.bal index e6d2ba56..62dc4fe9 100644 --- a/ballerina/commons.bal +++ b/ballerina/commons.bal @@ -357,17 +357,19 @@ 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 public type ClientConfiguration record {| - http:HttpVersion httpVersion = HTTP_1_1; + http:HttpVersion httpVersion = http:HTTP_2_0; http:ClientHttp1Settings http1Settings = {}; http:ClientHttp2Settings http2Settings = {}; - decimal timeout = 60; + decimal timeout = 30; 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 }; } From e7e463ab68afdabac0bdcfd111a89592c3dcfe6b Mon Sep 17 00:00:00 2001 From: Ayesh Almeida Date: Thu, 27 Nov 2025 09:33:27 +0530 Subject: [PATCH 2/4] Update change log --- changelog.md | 5 +++++ 1 file changed, 5 insertions(+) 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) From 3e1a39ab48f05daab03af3dabc9295f4b5497a2f Mon Sep 17 00:00:00 2001 From: Ayesh Almeida <77491511+ayeshLK@users.noreply.github.com> Date: Thu, 27 Nov 2025 11:12:38 +0530 Subject: [PATCH 3/4] Update ballerina/commons.bal --- ballerina/commons.bal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ballerina/commons.bal b/ballerina/commons.bal index 62dc4fe9..00bcb15b 100644 --- a/ballerina/commons.bal +++ b/ballerina/commons.bal @@ -362,7 +362,7 @@ public final UnsubscriptionDeniedError UNSUBSCRIPTION_DENIED_ERROR = error Unsub # + secureSocket - SSL/TLS related options # + circuitBreaker - Configurations associated with the behaviour of the Circuit Breaker public type ClientConfiguration record {| - http:HttpVersion httpVersion = http:HTTP_2_0; + http:HttpVersion httpVersion = HTTP_1_1; http:ClientHttp1Settings http1Settings = {}; http:ClientHttp2Settings http2Settings = {}; decimal timeout = 30; From 007b82cf1585f0d87fe669bdd0ba66a6a67df02b Mon Sep 17 00:00:00 2001 From: Ayesh Almeida <77491511+ayeshLK@users.noreply.github.com> Date: Thu, 27 Nov 2025 17:45:40 +0530 Subject: [PATCH 4/4] Revert timeout value update --- ballerina/commons.bal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ballerina/commons.bal b/ballerina/commons.bal index 00bcb15b..1e30a4c5 100644 --- a/ballerina/commons.bal +++ b/ballerina/commons.bal @@ -365,7 +365,7 @@ public type ClientConfiguration record {| http:HttpVersion httpVersion = HTTP_1_1; http:ClientHttp1Settings http1Settings = {}; http:ClientHttp2Settings http2Settings = {}; - decimal timeout = 30; + decimal timeout = 60; http:PoolConfiguration poolConfig?; http:ClientAuthConfig auth?; http:RetryConfig retryConfig?;