added ability to override the http request dependency