[client-v2] Custom http header, query parameters and URL parsing
chernser opened this issue · 1 comments
chernser commented
chernser commented
I would propose next solution:
- create a client builder method:
setHttpHeaders(Map<String, String> headers)
and accept values asString
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