We’ve added support for configuring proxy servers in the generated Java and Ruby SDKs.
This enhancement enables API requests to be routed through custom proxy servers, making it easier to work within corporate networks, behind firewalls, or in environments where outbound connections must go through a proxy.
What's New?
In many enterprise and secure environments, direct internet access is restricted. With this update, the SDKs now support proxy configuration, allowing you to route requests through a specified proxy server.
Developers can now set up proxy settings during SDK client initialization:
- Java
- Ruby
Configure proxy settings using httpClientConfig()
with HttpProxyConfiguration.Builder
:
Client client = new Client.Builder()
.httpClientConfig(configBuilder -> configBuilder
.proxyConfig(new HttpProxyConfiguration
.Builder("http://localhost", 8080)
.auth("username", "password")))
.build();
Proxy Configuration Builder
- address — The full address of the proxy server.
- port — The port on which the proxy server is listening.
- auth — Credentials for proxy authentication (username and password).
Configure proxy settings using the ProxySettings
instance with properties including address, port, username, and password:
client = Client.new(
proxy_settings: ProxySettings.new(
address: 'http://localhost',
port: 8080,
username: 'admin',
password: 'password123'
)
)
Proxy Settings
- address — The full address of the proxy server.
- port — The port on which the proxy server is listening.
- username — The username for proxy authentication.
- password — The password for proxy authentication.
Learn more about proxy configuration feature
Proxy configuration is also available in other SDKs: