* @ngdoc service * @name $httpBackend * @requires $window * @requires $document * * @description * HTTP backend used by the ng.$http service that delegates to * XMLHttpRequest object or JSONP and deals with browser incompatibilities. * * You should never need to use this service dir
()
| 8562 | * $httpBackend} which can be trained with responses. |
| 8563 | */ |
| 8564 | function $HttpBackendProvider() { |
| 8565 | this.$get = ['$browser', '$window', '$document', function($browser, $window, $document) { |
| 8566 | return createHttpBackend($browser, createXhr, $browser.defer, $window.angular.callbacks, $document[0]); |
| 8567 | }]; |
| 8568 | } |
| 8569 | |
| 8570 | function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) { |
| 8571 | var ABORTED = -1; |
nothing calls this directly
no test coverage detected