v.24.12New Feature

New Setting for Customizing HTTP Response Headers

A new setting, http_response_headers which allows you to customize the HTTP response headers. For example, you can tell the browser to render a picture that is stored in the database. This closes #59620. #72656 (Alexey Milovidov).
Introduces a new setting http_response_headers that enables customization of HTTP response headers in ClickHouse.

Why it matters

This feature allows users to control and customize HTTP response headers, such as instructing browsers to render images stored in the database directly. It enhances flexibility in how HTTP responses are handled and presented.

How to use it

Use the http_response_headers setting to specify custom HTTP headers in your ClickHouse configuration or query context. For example, you can add headers to control content types or caching behaviors to influence how browsers or clients process the response.