public SelfT compressServerResponse(boolean enable, ClickHouseCompression compressAlgorithm, int compressLevel) {
        checkSealed();

        if (compressAlgorithm == null) {
            compressAlgorithm = enable
                    ? (ClickHouseCompression) ClickHouseClientOption.COMPRESS_ALGORITHM.getEffectiveDefaultValue()
                    : ClickHouseCompression.NONE;
        }

        return option(ClickHouseClientOption.COMPRESS, enable)
                .option(ClickHouseClientOption.COMPRESS_ALGORITHM, compressAlgorithm)
                .option(ClickHouseClientOption.COMPRESS_LEVEL, compressLevel);
    }
Enable or disable compression of server response.

@param enable            true to enable compression of server response; false
                         otherwise
@param compressAlgorithm compression algorithm, null is treated as
                         {@link ClickHouseCompression#NONE} or
                         {@link ClickHouseClientOption#COMPRESS_ALGORITHM}
                         depending on whether enabled
@param compressLevel     compression level
@return the request itself
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseRequest.java