diff --git a/dbms/include/DB/IO/WriteBufferFromHTTPServerResponse.h b/dbms/include/DB/IO/WriteBufferFromHTTPServerResponse.h index 75ec990e8e3e331d6016084787d2973d2d760da2..a3cbdfeb9a98cae81925078ccfdf81bd121add01 100644 --- a/dbms/include/DB/IO/WriteBufferFromHTTPServerResponse.h +++ b/dbms/include/DB/IO/WriteBufferFromHTTPServerResponse.h @@ -36,13 +36,17 @@ namespace ErrorCodes /// /// Additionally, supports HTTP response compression (in this case corresponding Content-Encoding /// header will be set). +/// +/// Also this class write and flush special X-ClickHouse-Progress HTTP headers +/// if no data was sent at the time of progress notification. +/// This allows to implement progress bar in HTTP clients. class WriteBufferFromHTTPServerResponse : public BufferWithOwnMemory { private: Poco::Net::HTTPServerResponse & response; - bool add_cors_header; - bool compress; + bool add_cors_header = false; + bool compress = false; ZlibCompressionMethod compression_method; int compression_level = Z_DEFAULT_COMPRESSION;