* @ngdoc service * @name $httpBackend * @requires $window * @requires $document * @requires $xhrFactory * * @description * HTTP backend used by the ng.$http service that delegates to * XMLHttpRequest object or JSONP and deals with browser incompatibilities. * * You should never nee
()
| 10957 | * $httpBackend} which can be trained with responses. |
| 10958 | */ |
| 10959 | function $HttpBackendProvider() { |
| 10960 | this.$get = ['$browser', '$window', '$document', '$xhrFactory', function($browser, $window, $document, $xhrFactory) { |
| 10961 | return createHttpBackend($browser, $xhrFactory, $browser.defer, $window.angular.callbacks, $document[0]); |
| 10962 | }]; |
| 10963 | } |
| 10964 | |
| 10965 | function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) { |
| 10966 | // TODO(vojta): fix the signature |
nothing calls this directly
no test coverage detected