* @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
()
| 10423 | * $httpBackend} which can be trained with responses. |
| 10424 | */ |
| 10425 | function $HttpBackendProvider() { |
| 10426 | this.$get = ['$browser', '$window', '$document', function($browser, $window, $document) { |
| 10427 | return createHttpBackend($browser, createXhr, $browser.defer, $window.angular.callbacks, $document[0]); |
| 10428 | }]; |
| 10429 | } |
| 10430 | |
| 10431 | function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) { |
| 10432 | // TODO(vojta): fix the signature |
nothing calls this directly
no test coverage detected