C++ Client-Side SDK
LaunchDarkly SDK
|
#include <http_properties.hpp>
Public Member Functions | |
ProxyOptions (std::optional< std::string > url) | |
ProxyOptions () | |
std::optional< std::string > const & | Url () const |
Proxy configuration for HTTP requests.
When using CURL networking (LD_CURL_NETWORKING=ON), this controls proxy behavior:
The empty string is forwarded to the networking implementation (CURL) which interprets it as "do not use any proxy, even if environment variables are set."
When CURL networking is disabled, attempting to configure a proxy will throw an error.
|
explicit |
Construct proxy options with a proxy URL.
url | Proxy URL or configuration:
|
std::runtime_error | if proxy URL is non-empty and CURL networking is not enabled |
launchdarkly::config::shared::built::ProxyOptions::ProxyOptions | ( | ) |
Default constructor. Uses environment variables for proxy configuration.
std::optional< std::string > const & launchdarkly::config::shared::built::ProxyOptions::Url | ( | ) | const |
Get the configured proxy URL.