#include <userver/components/headers_propagator_component.hpp>
Headers Propagator Component can scrape configured headers and then enrich HttpClient request with them.
The component can be configured in service config.
Name | Description | Default value |
---|---|---|
headers | List of headers to propagate | [] |
Definition at line 33 of file headers_propagator_component.hpp.
Public Member Functions | |
HeadersPropagatorComponent (const components::ComponentConfig &, const components::ComponentContext &) | |
server::http::HeadersPropagator & | Get () |
Public Member Functions inherited from components::LoggableComponentBase | |
LoggableComponentBase (const ComponentConfig &, const ComponentContext &) | |
LoggableComponentBase (LoggableComponentBase &&)=delete | |
LoggableComponentBase (const LoggableComponentBase &)=delete | |
~LoggableComponentBase () override=default | |
ComponentHealth | GetComponentHealth () const override |
void | OnLoadingCancelled () override |
void | OnAllComponentsLoaded () override |
void | OnAllComponentsAreStopping () override |
Static Public Member Functions | |
static yaml_config::Schema | GetStaticConfigSchema () |
Static Public Member Functions inherited from components::LoggableComponentBase | |
static yaml_config::Schema | GetStaticConfigSchema () |
Static Public Attributes | |
static constexpr std::string_view | kName = "headers-propagator" |
The default name of components::HeadersPropagatorComponent component. | |