Skip to main content

Introducing Proxy Configuration Support in .NET SDKs

· One min read

We’ve added support for configuring proxy servers in the generated .NET 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, .NET SDKs now support proxy configuration, allowing you to route requests through a specified proxy server.

Developers can set up proxy settings during SDK client initialization using the ProxyConfigurationBuilder.

.NET SDK Client initialization

var client = new SDKClient.Builder()
.HttpClientConfig(config => config
.Proxy(
new ProxyConfigurationBuilder("http://localhost")
.Port(8080)
.Tunnel(false)
.Auth("username", "password")
)
)
.Build();

Proxy Configuration Options

  • 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).
  • tunnel: Indicates whether tunneling should be used for HTTPS requests through the proxy (true or false).

Learn more about proxy configuration feature