25#include "olp/core/CoreApi.h"
26#include "olp/core/http/Network.h"
27#include "olp/core/http/NetworkInitializationSettings.h"
28#include "olp/core/thread/TaskScheduler.h"
37struct OlpClientSettings;
55 size_t thread_count = 1u);
76 size_t max_requests_count = 30u);
136 const std::string& url,
Fills in the OlpClientSettings structure with default handlers.
Definition OlpClientSettingsFactory.h:43
static std::shared_ptr< http::Network > CreateDefaultNetworkRequestHandler(http::NetworkInitializationSettings settings)
Creates the Network instance used for all the non-local requests.
static std::unique_ptr< thread::TaskScheduler > CreateDefaultTaskScheduler(size_t thread_count=1u)
Creates the TaskScheduler instance used for all the delayed operations.
static void PrewarmConnection(const OlpClientSettings &settings, const std::string &url, http::Network::Callback callback=nullptr)
This function helps you prewarm the connection to the provided host.
static std::shared_ptr< http::Network > CreateDefaultNetworkRequestHandler(size_t max_requests_count=30u)
Creates the Network instance used for all the non-local requests.
static std::unique_ptr< cache::KeyValueCache > CreateDefaultCache(cache::CacheSettings settings)
Creates the KeyValueCache instance that includes both a small memory LRU cache and a larger persisten...
std::function< void(NetworkResponse response)> Callback
The callback that is called when the request is processed or canceled.
Definition Network.h:41
Rules all the other namespaces.
Definition AppleSignInProperties.h:24
Settings for memory and disk caching.
Definition CacheSettings.h:63
Configures the behavior of the OlpClient class.
Definition OlpClientSettings.h:178
Settings for network initialization.
Definition NetworkInitializationSettings.h:32