3#ifdef USERVER_TVM2_HTTP_CLIENT
4#error Use components::Http from clients/http.hpp instead
10#include <userver/clients/http/client.hpp>
11#include <userver/clients/http/client_with_middlewares.hpp>
12#include <userver/clients/http/component_core.hpp>
14USERVER_NAMESPACE_BEGIN
41 static constexpr std::string_view
kName =
"http-client";
43 HttpClient(
const ComponentConfig&,
const ComponentContext&);
45 clients::http::
Client& GetHttpClient();
50 clients::http::ClientWithMiddlewares http_client_;
54inline constexpr bool kHasValidate<HttpClient> =
true;