27 #include <olp/core/CoreApi.h>
28 #include <olp/core/http/NetworkProxySettings.h>
29 #include <olp/core/http/NetworkTypes.h>
30 #include <olp/core/porting/deprecated.h>
47 #ifdef OLP_SDK_NETWORK_IOS_BACKGROUND_DOWNLOAD
53 std::chrono::milliseconds GetBackgroundConnectionTimeoutDuration()
const;
65 #ifdef OLP_SDK_NETWORK_IOS_BACKGROUND_DOWNLOAD
74 std::chrono::milliseconds timeout);
147 std::chrono::milliseconds connection_timeout_ = std::chrono::seconds(60);
148 #ifdef OLP_SDK_NETWORK_IOS_BACKGROUND_DOWNLOAD
150 std::chrono::milliseconds background_connection_timeout_ =
151 std::chrono::seconds(600);
154 std::chrono::milliseconds transfer_timeout_ = std::chrono::seconds(30);
156 std::chrono::seconds connection_lifetime_{0};
160 std::vector<std::string> dns_servers_;
Contains a proxy configuration for the network interface that is applied per request.
Definition: NetworkProxySettings.h:34
Contains a configuration for the network.
Definition: NetworkSettings.h:38
NetworkSettings & WithProxySettings(NetworkProxySettings settings)
Sets the proxy settings.
const std::vector< std::string > & GetDNSServers() const
Gets the DNS list.
std::chrono::milliseconds GetTransferTimeoutDuration() const
Gets the transfer timeout.
std::chrono::milliseconds GetConnectionTimeoutDuration() const
Gets the connection timeout.
std::chrono::seconds GetMaxConnectionLifetime() const
Gets max lifetime (since creation) allowed for reusing a connection.
NetworkSettings & WithDNSServers(std::vector< std::string > dns_servers)
Sets the DNS servers to use. Works only with CURL implementation. The order is important....
NetworkSettings & WithConnectionTimeout(std::chrono::milliseconds timeout)
Sets the connection timeout.
const NetworkProxySettings & GetProxySettings() const
Gets the proxy settings.
NetworkSettings & WithMaxConnectionLifetime(std::chrono::seconds lifetime)
Sets max lifetime (since creation) allowed for reusing a connection. Supported only for CURL implemen...
NetworkSettings & WithTransferTimeout(std::chrono::milliseconds timeout)
Sets the transfer timeout.
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24