* @ngdoc service * @name $httpBackend * @requires $window * @requires $document * @requires $xhrFactory * * @description * HTTP backend used by the ng.$http service that delegates to * XMLHttpRequest object or JSONP and deals with browser incompatibilities. * * You should never nee
()
| 11351 | * $httpBackend} which can be trained with responses. |
| 11352 | */ |
| 11353 | function $HttpBackendProvider() { |
| 11354 | this.$get = ['$browser', '$window', '$document', '$xhrFactory', function($browser, $window, $document, $xhrFactory) { |
| 11355 | return createHttpBackend($browser, $xhrFactory, $browser.defer, $window.angular.callbacks, $document[0]); |
| 11356 | }]; |
| 11357 | } |
| 11358 | |
| 11359 | function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) { |
| 11360 | // TODO(vojta): fix the signature |
nothing calls this directly
no test coverage detected