* @ngdoc object * @name ng.$httpBackend * @requires $browser * @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
()
| 9237 | * $httpBackend} which can be trained with responses. |
| 9238 | */ |
| 9239 | function $HttpBackendProvider() { |
| 9240 | this.$get = ['$browser', '$window', '$document', function($browser, $window, $document) { |
| 9241 | return createHttpBackend($browser, XHR, $browser.defer, $window.angular.callbacks, |
| 9242 | $document[0], $window.location.protocol.replace(':', '')); |
| 9243 | }]; |
| 9244 | } |
| 9245 | |
| 9246 | function createHttpBackend($browser, XHR, $browserDefer, callbacks, rawDocument, locationProtocol) { |
| 9247 | // TODO(vojta): fix the signature |
nothing calls this directly
no test coverage detected