v.21.7Improvement

Add HTTP settings for max fields and sizes

Add settings http_max_fields, http_max_field_name_size, http_max_field_value_size. #25296 (Ivan).
Introduced new HTTP server settings http_max_fields, http_max_field_name_size, and http_max_field_value_size to control limits on HTTP request headers.

Why it matters

These settings allow administrators to limit the number of HTTP header fields, as well as the maximum size of each header's name and value. This helps improve security and resource management by preventing excessively large or numerous headers from affecting server performance.

How to use it

Users can configure these limits by setting the parameters http_max_fields, http_max_field_name_size, and http_max_field_value_size in the server configuration files or runtime settings to appropriate values based on their requirements.