userver: userver/testsuite/http_allowed_urls_extra.hpp Source File
Loading...
Searching...
No Matches
http_allowed_urls_extra.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/testsuite/http_allowed_urls_extra.hpp
4/// @brief @copybrief testsuite::HttpAllowedUrlsExtra
5
6#include <memory>
7#include <string>
8
9#include <userver/components/component_fwd.hpp>
10#include <userver/formats/json_fwd.hpp>
11
12USERVER_NAMESPACE_BEGIN
13
14namespace clients::http {
15class ClientCore;
16} // namespace clients::http
17
18namespace testsuite {
19
20/// @brief Testsuite extra allowed HTTP client URLs
21class HttpAllowedUrlsExtra final {
22public:
23 void RegisterHttpClient(clients::http::ClientCore& http_client);
24
25 void SetAllowedUrlsExtra(std::vector<std::string>&& urls);
26
27private:
28 clients::http::ClientCore* http_client_{nullptr};
29};
30
31} // namespace testsuite
32
33USERVER_NAMESPACE_END