ClickHouse/clickhouse-java

[client-v2] Custom http header, query parameters and URL parsing

chernser opened this issue · 1 comments

Describe the bug

It should be possible to pass custom HTTP headers to the request

Closes #1750

I would propose next solution:

  • create a client builder method: setHttpHeaders(Map<String, String> headers) and accept values as String in format supporting multiple values
  • reserve http_header_ prefix for options that should be passed as header values. This is required for cases when we parse connection URL into properties
  • create a client builder method: setQueryOptions(Map<String, String> options) to be passed as query parameters
  • reserve query_p_ prefix for options that should be passes as query parameters. This is required for cases when we parse connection URL into properties.

Should be similar to JavaScript Client