Adding mechanism to override default httpclient.