* @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
()
| 9802 | * $httpBackend} which can be trained with responses. |
| 9803 | */ |
| 9804 | function $HttpBackendProvider() { |
| 9805 | this.$get = ['$browser', '$window', '$document', function($browser, $window, $document) { |
| 9806 | return createHttpBackend($browser, createXhr, $browser.defer, $window.angular.callbacks, $document[0]); |
| 9807 | }]; |
| 9808 | } |
| 9809 | |
| 9810 | function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) { |
| 9811 | // TODO(vojta): fix the signature |
nothing calls this directly
no test coverage detected