userver: userver/server/request/request_config.hpp Source File
Loading...
Searching...
No Matches
request_config.hpp
1#pragma once
2
3#include <cstdint>
4
5#include <userver/http/http_version.hpp>
6#include <userver/server/http/http_status.hpp>
7#include <userver/yaml_config/yaml_config.hpp>
8
9USERVER_NAMESPACE_BEGIN
10
11namespace server::request {
12
13struct HttpRequestConfig {
14 std::size_t max_url_size = 8192;
15 std::size_t max_request_size = 1024 * 1024;
16 std::size_t max_headers_size = 65536;
17 bool parse_args_from_body = false;
18 bool testing_mode = false;
19 bool decompress_request = false;
20 bool set_tracing_headers = true;
21 bool deadline_propagation_enabled = true;
22 http::HttpStatus deadline_expired_status_code = http::HttpStatus{498};
23};
24
26
27} // namespace server::request
28
29USERVER_NAMESPACE_END