Allow construction with HttpConnector and default ClientConfig
Closes: https://github.com/ctz/hyper-rustls/issues/67
Something is wrong with the CI for MacOS - builds get cancelled right away. It's definitely unrelated to the PR.
maybe a new_with_connector() is more suitable.
https://github.com/hyperium/hyper-tls/blob/fa6d6a71a5b2be91c827a35f9fafe5179b0ff4ca/src/client.rs#L71-L75
@kinosang thanks for the suggestion and we looked into it, but we'd like to stick with hyper-rustls in our project.
@inikulin yeah, I mean, to uniformize the APIs, we may have a new_with_connector() for hyper-rustls instead of a default_client_config.
This is what I did initially, however later we've had a case where we needed to do minor adjustments to the default config and this API is flexible enough to support that.
@inikulin please rebase
@lucab @ctz could you have a look at this PR? I need exactly the same thing and this looks like an easy change.