#include <userver/server/middlewares/configuration.hpp>
Base class to build a per-handler middleware pipeline. One may inherit from it and implement any custom logic, if desired. By default the behavior is to use the server-wide pipeline.
Definition at line 90 of file configuration.hpp.
Public Member Functions | |
HandlerPipelineBuilder (const components::ComponentConfig &, const components::ComponentContext &) | |
virtual MiddlewaresList | BuildPipeline (MiddlewaresList server_middleware_pipeline) const |
The method to configure build a per-handler middleware pipeline, one may override it if custom behavior is desired. | |
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 |
Additional Inherited Members | |
Static Public Member Functions inherited from components::LoggableComponentBase | |
static yaml_config::Schema | GetStaticConfigSchema () |
|
inlinevirtual |
The method to configure build a per-handler middleware pipeline, one may override it if custom behavior is desired.
For example, a ping/ handler doesn't necessary need any business-logic related functionality, and could use just DefaultPipeline() for itself.
server_middleware_pipeline | the server-wide middleware pipeline |
Definition at line 105 of file configuration.hpp.
|
staticconstexpr |
Definition at line 92 of file configuration.hpp.