Make it possible to inject http.Client

Needed when, for example, modifying TLS configuration.