userver: server::middlewares::SimpleHttpMiddlewareFactory< Middleware > Class Template Reference
Loading...
Searching...
No Matches
server::middlewares::SimpleHttpMiddlewareFactory< Middleware > Class Template Referencefinal

#include <userver/server/middlewares/http_middleware_base.hpp>

Detailed Description

template<typename Middleware>
class server::middlewares::SimpleHttpMiddlewareFactory< Middleware >

A short-cut for defining a middleware-factory.

Definition at line 81 of file http_middleware_base.hpp.

+ Inheritance diagram for server::middlewares::SimpleHttpMiddlewareFactory< Middleware >:
+ Collaboration diagram for server::middlewares::SimpleHttpMiddlewareFactory< Middleware >:

Public Member Functions

 HttpMiddlewareFactoryBase (const components::ComponentConfig &, const components::ComponentContext &)
 
- Public Member Functions inherited from server::middlewares::HttpMiddlewareFactoryBase
 HttpMiddlewareFactoryBase (const components::ComponentConfig &, const components::ComponentContext &)
 
std::unique_ptr< HttpMiddlewareBaseCreateChecked (const handlers::HttpHandlerBase &handler, yaml_config::YamlConfig middleware_config) const
 
- 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 Attributes

static constexpr std::string_view kName = Middleware::kName
 

Additional Inherited Members

- Static Public Member Functions inherited from components::LoggableComponentBase
static yaml_config::Schema GetStaticConfigSchema ()
 
- Protected Member Functions inherited from server::middlewares::HttpMiddlewareFactoryBase
virtual yaml_config::Schema GetMiddlewareConfigSchema () const
 This method should return the schema of a middleware configuration, if any. You may override it.
 

Member Data Documentation

◆ kName

template<typename Middleware >
constexpr std::string_view server::middlewares::SimpleHttpMiddlewareFactory< Middleware >::kName = Middleware::kName
staticconstexpr

Definition at line 83 of file http_middleware_base.hpp.


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