How can we help?

Java SDK: How do I use the SDK behind a HTTP/HTTPS proxy?

The following example shows how to configure your SDK to connect to LaunchDarkly through a HTTP/HTTPS proxy.

LDConfig config = new LDConfig.Builder()
    .proxyHost("https://PROXYURL")
    .proxyPort(8080)
    .proxyUsername("USERNAME") // OPTIONAL
    .proxyPassword("PASSWORD") // OPTIONAL
.build(); LDClient ldClient = new LDClient("YOUR_SDK_KEY", config);

 

Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request