3#include <userver/server/middlewares/http_middleware_base.hpp>
11 explicit HeadersPropagator(
const handlers::
HttpHandlerBase&, std::vector<std::string> headers);
14 void HandleRequest(
http::HttpRequest& request,
request::RequestContext& context)
const override;
16 std::vector<std::string> headers_;
21 static constexpr std::string_view kName =
"headers-propagator";
23 HeadersPropagatorFactory(
const components::ComponentConfig&,
const components::ComponentContext&);
28 std::unique_ptr<HttpMiddlewareBase>
29 Create(
const handlers::HttpHandlerBase&, yaml_config::YamlConfig middleware_config)
const override;
31 std::vector<std::string> headers_;
37inline constexpr bool components::kHasValidate<server::middlewares::HeadersPropagatorFactory> =
true;
40inline constexpr auto components::kConfigFileMode<server::middlewares::HeadersPropagatorFactory> =