8#include <userver/server/handlers/auth/handler_auth_config.hpp>
9#include <userver/server/handlers/fallback_handlers.hpp>
10#include <userver/server/http/http_status.hpp>
11#include <userver/server/request/request_config.hpp>
13USERVER_NAMESPACE_BEGIN
19namespace server::handlers {
30 std::variant<std::string, FallbackHandler> path;
31 std::string task_processor;
34 size_t request_body_size_log_limit{0};
35 size_t request_headers_size_log_limit{0};
36 size_t response_data_size_log_limit{0};
37 std::optional<auth::HandlerAuthConfig> auth;
39 std::optional<size_t> max_requests_in_flight;
40 std::optional<size_t> max_requests_per_second;
41 bool decompress_request{
true};
42 bool throttling_enabled{
true};
43 bool response_body_stream{
false};
44 std::optional<
bool> set_response_server_hostname;
45 bool set_tracing_headers{
true};
46 bool deadline_propagation_enabled{
true};
47 http::HttpStatus deadline_expired_status_code{498};
52 const server::ServerConfig& server_config,
53 bool is_monitor =
false