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

Function $HttpBackendProvider

test/angular/1.7/angular.js:13460–13464  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

13458 * $httpBackend} which can be trained with responses.
13459 */
13460function $HttpBackendProvider() {
13461 this.$get = ['$browser', '$jsonpCallbacks', '$document', '$xhrFactory', function($browser, $jsonpCallbacks, $document, $xhrFactory) {
13462 return createHttpBackend($browser, $xhrFactory, $browser.defer, $jsonpCallbacks, $document[0]);
13463 }];
13464}
13465
13466function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) {
13467 // TODO(vojta): fix the signature

Callers

nothing calls this directly

Calls 1

createHttpBackendFunction · 0.70

Tested by

no test coverage detected