userver: userver/clients/http/standalone_client.hpp Source File
Loading...
Searching...
No Matches
standalone_client.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/clients/http/standalone_client.hpp
4/// @brief @copybrief clients::http::CreateStandaloneHttpClient()
5
6#include <userver/clients/http/client.hpp>
7#include <userver/clients/http/config.hpp>
8
9USERVER_NAMESPACE_BEGIN
10
11namespace clients::http {
12
13struct StandaloneConfig final {
14 bool multiplexing_enabled{false};
15 std::optional<size_t> max_host_connections{std::nullopt};
16};
17
18/// @brief Creates HTTP client with given settings and plugins
20 ClientSettings settings,
21 StandaloneConfig standalone_config,
22 engine::TaskProcessor& fs_task_processor,
23 std::vector<utils::NotNull<clients::http::Plugin*>> plugins = {}
24);
25
26} // namespace clients::http
27
28USERVER_NAMESPACE_END