userver: server::handlers::HandlerConfig Struct Reference
Loading...
Searching...
No Matches
server::handlers::HandlerConfig Struct Reference

Detailed Description

Definition at line 29 of file handler_config.hpp.

Public Attributes

std::variant< std::string, FallbackHandler > path
 
std::string task_processor
 
std::string method
 
request::HttpRequestConfig request_config {}
 
size_t request_body_size_log_limit {0}
 
size_t request_headers_size_log_limit {0}
 
size_t response_data_size_log_limit {0}
 
std::optional< auth::HandlerAuthConfigauth
 
UrlTrailingSlashOption url_trailing_slash {UrlTrailingSlashOption::kDefault}
 
std::optional< size_t > max_requests_in_flight
 
std::optional< size_t > max_requests_per_second
 
bool decompress_request {true}
 
bool throttling_enabled {true}
 
bool response_body_stream {false}
 
std::optional< bool > set_response_server_hostname
 
bool set_tracing_headers {true}
 
bool deadline_propagation_enabled {true}
 
http::HttpStatus deadline_expired_status_code {498}
 

Member Data Documentation

◆ auth

std::optional<auth::HandlerAuthConfig> server::handlers::HandlerConfig::auth

Definition at line 37 of file handler_config.hpp.

◆ deadline_expired_status_code

http::HttpStatus server::handlers::HandlerConfig::deadline_expired_status_code {498}

Definition at line 47 of file handler_config.hpp.

◆ deadline_propagation_enabled

bool server::handlers::HandlerConfig::deadline_propagation_enabled {true}

Definition at line 46 of file handler_config.hpp.

◆ decompress_request

bool server::handlers::HandlerConfig::decompress_request {true}

Definition at line 41 of file handler_config.hpp.

◆ max_requests_in_flight

std::optional<size_t> server::handlers::HandlerConfig::max_requests_in_flight

Definition at line 39 of file handler_config.hpp.

◆ max_requests_per_second

std::optional<size_t> server::handlers::HandlerConfig::max_requests_per_second

Definition at line 40 of file handler_config.hpp.

◆ method

std::string server::handlers::HandlerConfig::method

Definition at line 32 of file handler_config.hpp.

◆ path

std::variant<std::string, FallbackHandler> server::handlers::HandlerConfig::path

Definition at line 30 of file handler_config.hpp.

◆ request_body_size_log_limit

size_t server::handlers::HandlerConfig::request_body_size_log_limit {0}

Definition at line 34 of file handler_config.hpp.

◆ request_config

request::HttpRequestConfig server::handlers::HandlerConfig::request_config {}

Definition at line 33 of file handler_config.hpp.

◆ request_headers_size_log_limit

size_t server::handlers::HandlerConfig::request_headers_size_log_limit {0}

Definition at line 35 of file handler_config.hpp.

◆ response_body_stream

bool server::handlers::HandlerConfig::response_body_stream {false}

Definition at line 43 of file handler_config.hpp.

◆ response_data_size_log_limit

size_t server::handlers::HandlerConfig::response_data_size_log_limit {0}

Definition at line 36 of file handler_config.hpp.

◆ set_response_server_hostname

std::optional<bool> server::handlers::HandlerConfig::set_response_server_hostname

Definition at line 44 of file handler_config.hpp.

◆ set_tracing_headers

bool server::handlers::HandlerConfig::set_tracing_headers {true}

Definition at line 45 of file handler_config.hpp.

◆ task_processor

std::string server::handlers::HandlerConfig::task_processor

Definition at line 31 of file handler_config.hpp.

◆ throttling_enabled

bool server::handlers::HandlerConfig::throttling_enabled {true}

Definition at line 42 of file handler_config.hpp.

◆ url_trailing_slash

UrlTrailingSlashOption server::handlers::HandlerConfig::url_trailing_slash {UrlTrailingSlashOption::kDefault}

Definition at line 38 of file handler_config.hpp.


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