Documentation Index
Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Server-side SDKs
This feature is available for the following server-side SDKs:- .NET (server-side)
- Apex
- C++ (server-side)
- Erlang
- Go
- Haskell
- Java
- Lua
- Node.js (server-side)
- PHP
- Python
- Ruby
- Rust
.NET (server-side)
Expand .NET (server-side) code sample
Expand .NET (server-side) code sample
To configure an alternate service endpoint for the SDK, use the
ServiceEndpoints builder method to specify the base URIs. Here are some examples for common base URIs that you might use instead of the defaults:Apex
Expand Apex code sample
Expand Apex code sample
First, set up the Apex bridge. If you are a federal customer, make sure you run the Apex bridge within your own FedRAMP-compliant environment. To learn more, read Use the LaunchDarkly Salesforce bridge.To configure an alternate service endpoint for the SDK, export the alternate URIs before you build the bridge:
C++ (server-side)
Expand C++ (server-side) code sample
Expand C++ (server-side) code sample
To configure an alternate service endpoint for the SDK, use To learn more, read
StreamingBaseUrl, PollingBaseUrl, and EventsBaseUrl to specify the base URIs. Here are some examples for common base URIs that you might use instead of the defaults:ServiceEndpoints() in ConfigBuilder.Erlang
Expand Erlang code sample
Expand Erlang code sample
To configure an alternate service endpoint for the SDK, use the
stream_uri, base_uri, and events_uri properties to set the base URIs. Here are some examples for common base URIs that you might use instead of the defaults:Go
Expand Go code sample
Expand Go code sample
To configure an alternate service endpoint for the SDK, use the
Config.ServiceEndpoints property and interfaces.ServiceEndpoints() to specify the base URIs. Here are some examples for common base URIs that you might use instead of the defaults:Haskell
Expand Haskell code sample
Expand Haskell code sample
To configure an alternate service endpoint for the SDK, use
configSetStreamURI, configSetBaseURI, and configSetEventsURI to specify the base URIs. Here are some examples for common base URIs that you might use instead of the defaults:Java
Expand Java code sample
Expand Java code sample
To configure an alternate service endpoint for the SDK, use the
serviceEndpoints builder method to specify the base URIs. Here are some examples for common base URIs that you might use instead of the defaults:Lua
Expand Lua code sample
Expand Lua code sample
To configure an alternate service endpoint for the SDK, use the To learn more about the configuration options, read
serviceEndpoints property to specify the base URLs. Here are some examples for common base URLs that you might use instead of the defaults:clientInit.Node.js (server-side)
Expand Node.js (server-side) code sample
Expand Node.js (server-side) code sample
To configure an alternate service endpoint for the SDK, use the
streamUri, baseUri, and eventsUri properties to specify the base URIs.Here are some examples for common base URIs that you might use instead of the defaults:PHP
Expand PHP code sample
Expand PHP code sample
To configure an alternate service endpoint for the SDK, use the There is not a streaming service for the PHP SDK.
base_uri and events_uri properties to specify the base URIs. Here are some examples for common base URIs that you might use instead of the defaults:Python
Expand Python code sample
Expand Python code sample
To configure an alternate service endpoint for the SDK, use the
stream_uri, base_uri, and events_uri properties to specify the base URIs. Here are some examples for common base URIs that you might use instead of the defaults:Ruby
Expand Ruby code sample
Expand Ruby code sample
To configure an alternate service endpoint for the SDK, use the
stream_uri, base_uri, and events_uri properties to specify the base URIs. Here are some examples for common base URIs that you might use instead of the defaults:Rust
Expand Rust code sample
Expand Rust code sample
To configure an alternate service endpoint for the SDK, use the
ConfigBuilder and ServiceEndpointsBuilder to specify the base URIs. Here are some examples for common base URIs that you might use instead of the defaults: