MCPcopy
hub / github.com/angular-ui/ui-router / $HttpBackendProvider

Function $HttpBackendProvider

test/angular/1.4/angular.js:10959–10963  ·  view source on GitHub ↗

* @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

()

Source from the content-addressed store, hash-verified

10957 * $httpBackend} which can be trained with responses.
10958 */
10959function $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
10965function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) {
10966 // TODO(vojta): fix the signature

Callers

nothing calls this directly

Calls 1

createHttpBackendFunction · 0.70

Tested by

no test coverage detected