* @ngdoc service * @name $httpBackend * @requires $jsonpCallbacks * @requires $document * @requires $xhrFactory * @this * * @description * HTTP backend used by the ng.$http service that delegates to * XMLHttpRequest object or JSONP and deals with browser incompatibilities. * * You
()
| 13458 | * $httpBackend} which can be trained with responses. |
| 13459 | */ |
| 13460 | function $HttpBackendProvider() { |
| 13461 | this.$get = ['$browser', '$jsonpCallbacks', '$document', '$xhrFactory', function($browser, $jsonpCallbacks, $document, $xhrFactory) { |
| 13462 | return createHttpBackend($browser, $xhrFactory, $browser.defer, $jsonpCallbacks, $document[0]); |
| 13463 | }]; |
| 13464 | } |
| 13465 | |
| 13466 | function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) { |
| 13467 | // TODO(vojta): fix the signature |
nothing calls this directly
no test coverage detected