take in http client in New()

this is a breaking API change
Can be part of the if condition below