Github   Telegram
Loading...
Searching...
No Matches
request_config.hpp
1#pragma once
2
3#include <cstdint>
4
5#include <userver/yaml_config/yaml_config.hpp>
6
7USERVER_NAMESPACE_BEGIN
8
9namespace server::request {
10
11struct HttpRequestConfig {
12 std::size_t max_url_size = 8192;
13 std::size_t max_request_size = 1024 * 1024;
14 std::size_t max_headers_size = 65536;
15 bool parse_args_from_body = false;
16 bool testing_mode = false;
17 bool decompress_request = false;
18 bool set_tracing_headers = true;
19};
20
21HttpRequestConfig Parse(const yaml_config::YamlConfig& value,
22 formats::parse::To<HttpRequestConfig>);
23
24} // namespace server::request
25
26USERVER_NAMESPACE_END