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

Function $HttpBackendProvider

test/angular/1.5/angular.js:12171–12175  ·  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

12169 * $httpBackend} which can be trained with responses.
12170 */
12171function $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
12177function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) {
12178 // TODO(vojta): fix the signature

Callers

nothing calls this directly

Calls 1

createHttpBackendFunction · 0.70

Tested by

no test coverage detected