Allow user to specify their own http client.