27#include <olp/core/client/CancellationContext.h>
28#include <olp/core/client/DefaultLookupEndpointProvider.h>
29#include <olp/core/client/HRN.h>
30#include <olp/core/client/HttpResponse.h>
31#include <olp/core/client/OauthToken.h>
32#include <olp/core/client/RetrySettings.h>
33#include <olp/core/http/Network.h>
34#include <olp/core/porting/optional.h>
194 porting::optional<http::NetworkProxySettings> proxy_settings = porting::none;
202 porting::optional<AuthenticationSettings> authentication_settings =
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;
Represents a request outcome.
Definition ApiResponse.h:65
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:62
std::function< void(HttpResponse)> NetworkAsyncCallback
An alias for the asynchronous network callback.
Definition OlpClientSettings.h:55
Rules all the other namespaces.
Definition AppleSignInProperties.h:24
Settings to provide URLs for API lookup requests.
Definition OlpClientSettings.h:121
std::function< std::string(const std::string &)> LookupEndpointProvider
An alias for the lookup provider function.
Definition OlpClientSettings.h:133
std::function< std::string(const HRN &)> CatalogEndpointProvider
An alias for the catalog endpoint provider function.
Definition OlpClientSettings.h:148
A set of settings that manages the TokenProviderCallback and TokenProviderCancelCallback functions.
Definition OlpClientSettings.h:73
std::function< std::string()> ApiKeyProviderType
An alias for the ApiKey provider.
Definition OlpClientSettings.h:75
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:95
The default implementation of the lookup API endpoint provider.
Definition DefaultLookupEndpointProvider.h:35
Configures the behavior of the OlpClient class.
Definition OlpClientSettings.h:178
RetrySettings retry_settings
The retry settings.
Definition OlpClientSettings.h:182
ApiLookupSettings api_lookup_settings
API Lookup settings.
Definition OlpClientSettings.h:187
A collection of settings that controls how failed requests should be treated by the Data SDK.
Definition RetrySettings.h:47