clickhouse.rs
clickhouse.rs copied to clipboard
Added HTTPS support
Hey guys, love the client.
Brief summary of changes:
- Added
hyper-tls
- Added a function to create clients over HTTPS called
Client::new_secure
.
Hello, thanks for the PR!
I think, the client should seamlessly detect the https
scheme instead of using the dedicated constructor, which will allow changing the mode via configuration without changes in code. Fortunately, hyper-tls
support both, https
and http
schemes.
Secondly, I prefer to move such functionality under the tls
feature. It should be enabled by default.
Thus, I would like to alter the Default
instance and use hyper-tls
if the tls
feature is enabled.
Would you like to improve the implementation? Alternatively, you can create an issue.
Closed in favor of https://github.com/loyd/clickhouse.rs/pull/54