27 #include <boost/optional.hpp>
29 #include <olp/core/client/CancellationContext.h>
30 #include <olp/core/client/CancellationToken.h>
31 #include <olp/core/client/DefaultLookupEndpointProvider.h>
32 #include <olp/core/client/HRN.h>
33 #include <olp/core/client/HttpResponse.h>
34 #include <olp/core/client/OauthToken.h>
35 #include <olp/core/client/RetrySettings.h>
36 #include <olp/core/http/Network.h>
196 boost::optional<http::NetworkProxySettings> proxy_settings = boost::none;
203 boost::optional<AuthenticationSettings> authentication_settings = boost::none;
210 std::shared_ptr<thread::TaskScheduler> task_scheduler =
nullptr;
217 std::shared_ptr<http::Network> network_request_handler =
nullptr;
226 std::shared_ptr<cache::KeyValueCache> cache =
nullptr;
240 std::chrono::seconds default_cache_expiration = std::chrono::seconds::max();
248 bool propagate_all_cache_errors =
false;
A wrapper that manages the cancellation state of an asynchronous operation in a thread-safe way.
Definition: CancellationContext.h:40
Allows a Here Resource Name (HRN) to be passed to the operations that require it.
Definition: HRN.h:34
This class represents the HTTP response created from the NetworkResponse and the request body.
Definition: HttpResponse.h:89
std::function< void()> NetworkAsyncCancel
An alias for the cancel function.
Definition: OlpClientSettings.h:64
ApiResponse< OauthToken, ApiError > OauthTokenResponse
An alias for the OAuth token response.
Definition: OauthToken.h:90
std::function< void(HttpResponse)> NetworkAsyncCallback
An alias for the asynchronous network callback.
Definition: OlpClientSettings.h:57
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24
Settings to provide URLs for API lookup requests.
Definition: OlpClientSettings.h:123
std::function< std::string(const std::string &)> LookupEndpointProvider
An alias for the lookup provider function.
Definition: OlpClientSettings.h:135
std::function< std::string(const HRN &)> CatalogEndpointProvider
An alias for the catalog endpoint provider function.
Definition: OlpClientSettings.h:150
A set of settings that manages the TokenProviderCallback and TokenProviderCancelCallback functions.
Definition: OlpClientSettings.h:75
std::function< std::string()> ApiKeyProviderType
An alias for the ApiKey provider.
Definition: OlpClientSettings.h:77
std::function< OauthTokenResponse(CancellationContext &)> TokenProviderCancellableCallback
Implemented by the client that should return the OAuth2 bearer access token if the operation is succe...
Definition: OlpClientSettings.h:97
The default implementation of the lookup API endpoint provider.
Definition: DefaultLookupEndpointProvider.h:35
Configures the behavior of the OlpClient class.
Definition: OlpClientSettings.h:180
RetrySettings retry_settings
The retry settings.
Definition: OlpClientSettings.h:184
ApiLookupSettings api_lookup_settings
API Lookup settings.
Definition: OlpClientSettings.h:189
A collection of settings that controls how failed requests should be treated by the Data SDK.
Definition: RetrySettings.h:47