userver: components::HeadersPropagatorComponent Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
components::HeadersPropagatorComponent Class Referencefinal

#include <userver/components/headers_propagator_component.hpp>

Detailed Description

Headers Propagator Component can scrape configured headers and then enrich HttpClient request with them.

The component can be configured in service config.

Static options:

Name Description Default value
headers List of headers to propagate []

Definition at line 33 of file headers_propagator_component.hpp.

+ Inheritance diagram for components::HeadersPropagatorComponent:
+ Collaboration diagram for components::HeadersPropagatorComponent:

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.
 

The documentation for this class was generated from the following file: