25 #include <boost/optional.hpp>
27 #include "olp/core/CoreApi.h"
28 #include "olp/core/http/Network.h"
29 #include "olp/core/http/NetworkInitializationSettings.h"
30 #include "olp/core/thread/TaskScheduler.h"
39 struct OlpClientSettings;
57 size_t thread_count = 1u);
78 size_t max_requests_count = 30u);
138 const std::string& url,
Fills in the OlpClientSettings structure with default handlers.
Definition: OlpClientSettingsFactory.h:45
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...
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::shared_ptr< http::Network > CreateDefaultNetworkRequestHandler(http::NetworkInitializationSettings settings)
Creates the Network instance used for all the non-local requests.
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::unique_ptr< thread::TaskScheduler > CreateDefaultTaskScheduler(size_t thread_count=1u)
Creates the TaskScheduler instance used for all the delayed operations.
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:65
Configures the behavior of the OlpClient class.
Definition: OlpClientSettings.h:180
Settings for network initialization.
Definition: NetworkInitializationSettings.h:31