* @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
()
| 12887 | * $httpBackend} which can be trained with responses. |
| 12888 | */ |
| 12889 | function $HttpBackendProvider() { |
| 12890 | this.$get = ['$browser', '$jsonpCallbacks', '$document', '$xhrFactory', function($browser, $jsonpCallbacks, $document, $xhrFactory) { |
| 12891 | return createHttpBackend($browser, $xhrFactory, $browser.defer, $jsonpCallbacks, $document[0]); |
| 12892 | }]; |
| 12893 | } |
| 12894 | |
| 12895 | function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) { |
| 12896 | // TODO(vojta): fix the signature |
nothing calls this directly
no test coverage detected