C++ Client-Side SDK
LaunchDarkly SDK
|
Public Types | |
using | Streaming = StreamingBuilder< ClientSDK > |
using | Polling = PollingBuilder< ClientSDK > |
Public Member Functions | |
DataSourceBuilder & | WithReasons (bool value) |
DataSourceBuilder & | UseReport (bool value) |
DataSourceBuilder & | Method (Streaming stream_builder) |
DataSourceBuilder & | Method (Polling polling_builder) |
built::DataSourceConfig< ClientSDK > | Build () const |
built::DataSourceConfig< ClientSDK > launchdarkly::config::shared::builders::DataSourceBuilder< ClientSDK >::Build | ( | ) | const |
Build a data source config. This is used internal to the SDK.
DataSourceBuilder& launchdarkly::config::shared::builders::DataSourceBuilder< ClientSDK >::Method | ( | Polling | polling_builder | ) |
Set the polling configuration for the builder.
A data source may either be streaming or polling. Setting a stream builder indicates the data source will use streaming. Setting a polling builder will indicate the use of polling.
polling_builder | The polling builder. |
DataSourceBuilder& launchdarkly::config::shared::builders::DataSourceBuilder< ClientSDK >::Method | ( | Streaming | stream_builder | ) |
Set the streaming configuration for the builder.
A data source may either be streaming or polling. Setting a streaming builder indicates the data source will use streaming. Setting a polling builder will indicate the use of polling.
stream_builder | The streaming builder. |
DataSourceBuilder< ClientSDK > & launchdarkly::config::shared::builders::DataSourceBuilder< ClientSDK >::UseReport | ( | bool | value | ) |
Whether to use the REPORT verb to fetch flag settings.
If this is true, flag settings will be fetched with a REPORT request including a JSON entity body with the context object.
Otherwise (by default) a GET request will be issued with the context passed as a base64 URL-encoded path parameter.
Do not use unless advised by LaunchDarkly.
value | True to use the REPORT verb. |
DataSourceBuilder< ClientSDK > & launchdarkly::config::shared::builders::DataSourceBuilder< ClientSDK >::WithReasons | ( | bool | value | ) |
Whether LaunchDarkly should provide additional information about how flag values were calculated.
The additional information will then be available through the client's VariationDetail methods. Since this increases the size of network requests, such information is not sent unless you set this option to true.
value | True to enable reasons. |