userver: userver/server/middlewares/builtin.hpp Source File
Loading...
Searching...
No Matches
builtin.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/server/middlewares/builtin.hpp
4/// @brief Names of userver's built-in HTTP server middlewares
5
6#include <string_view>
7
8USERVER_NAMESPACE_BEGIN
9
10/// Names of userver's built-in HTTP server middlewares
11namespace server::middlewares::builtin {
12
13inline constexpr std::string_view kHandlerMetrics = "userver-handler-metrics-middleware";
14inline constexpr std::string_view kTracing = "userver-tracing-middleware";
15inline constexpr std::string_view kSetAcceptEncoding = "userver-set-accept-encoding-middleware";
16inline constexpr std::string_view kUnknownExceptionsHandling = "userver-unknown-exceptions-handling-middleware";
17inline constexpr std::string_view kRateLimit = "userver-rate-limit-middleware";
18inline constexpr std::string_view kDeadlinePropagation = "userver-deadline-propagation-middleware";
19inline constexpr std::string_view kBaggage = "userver-baggage-middleware";
20inline constexpr std::string_view kAuth = "userver-auth-middleware";
21inline constexpr std::string_view kDecompression = "userver-decompression-middleware";
22inline constexpr std::string_view kExceptionsHandling = "userver-exceptions-handling-middleware";
23
24} // namespace server::middlewares::builtin
25
26USERVER_NAMESPACE_END