userver
C++ Async Framework
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
9
USERVER_NAMESPACE_BEGIN
10
11
namespace
clients::http {
12
13
struct
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
19
std::shared_ptr<
Client
>
CreateStandaloneHttpClient
(
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
28
USERVER_NAMESPACE_END
userver
clients
http
standalone_client.hpp
Generated on Fri Dec 5 2025 12:19:37 for userver by
Doxygen
1.13.2