* @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
()
| 13523 | * $httpBackend} which can be trained with responses. |
| 13524 | */ |
| 13525 | function $HttpBackendProvider() { |
| 13526 | this.$get = ['$browser', '$jsonpCallbacks', '$document', '$xhrFactory', function($browser, $jsonpCallbacks, $document, $xhrFactory) { |
| 13527 | return createHttpBackend($browser, $xhrFactory, $browser.defer, $jsonpCallbacks, $document[0]); |
| 13528 | }]; |
| 13529 | } |
| 13530 | |
| 13531 | function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) { |
| 13532 | // TODO(vojta): fix the signature |
nothing calls this directly
no test coverage detected