* @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
()
| 12169 | * $httpBackend} which can be trained with responses. |
| 12170 | */ |
| 12171 | function $HttpBackendProvider() { |
| 12172 | this.$get = ['$browser', '$jsonpCallbacks', '$document', '$xhrFactory', function($browser, $jsonpCallbacks, $document, $xhrFactory) { |
| 12173 | return createHttpBackend($browser, $xhrFactory, $browser.defer, $jsonpCallbacks, $document[0]); |
| 12174 | }]; |
| 12175 | } |
| 12176 | |
| 12177 | function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) { |
| 12178 | // TODO(vojta): fix the signature |
nothing calls this directly
no test coverage detected