25 #include <olp/core/client/BackdownStrategy.h>
26 #include <olp/core/client/HttpResponse.h>
53 std::chrono::milliseconds,
size_t)>;
79 #ifdef OLP_SDK_NETWORK_IOS_BACKGROUND_DOWNLOAD
88 int background_timeout = 600;
99 std::chrono::milliseconds connection_timeout = std::chrono::seconds(30);
101 #ifdef OLP_SDK_NETWORK_IOS_BACKGROUND_DOWNLOAD
111 std::chrono::milliseconds background_connection_timeout =
112 std::chrono::seconds(600);
123 std::chrono::milliseconds transfer_timeout = std::chrono::seconds(30);
129 int initial_backdown_period = 200;
This class represents the HTTP response created from the NetworkResponse and the request body.
Definition: HttpResponse.h:89
CORE_API bool DefaultRetryCondition(const olp::client::HttpResponse &response)
The default retry condition that disables retries.
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24
Computes wait time for the next retry attempt via the exponential backoff with the added jitter.
Definition: BackdownStrategy.h:46
A collection of settings that controls how failed requests should be treated by the Data SDK.
Definition: RetrySettings.h:47
std::function< std::chrono::milliseconds(std::chrono::milliseconds, size_t)> BackdownStrategy
Calculates the number of retry timeouts based on the initial backdown duration and retries count.
Definition: RetrySettings.h:53
std::function< bool(const HttpResponse &)> RetryCondition
Checks whether the retry is desired.
Definition: RetrySettings.h:60