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

Function $HttpBackendProvider

test/angular/1.2/angular.js:8564–8568  ·  view source on GitHub ↗

* @ngdoc service * @name $httpBackend * @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 to use this service dir

()

Source from the content-addressed store, hash-verified

8562 * $httpBackend} which can be trained with responses.
8563 */
8564function $HttpBackendProvider() {
8565 this.$get = ['$browser', '$window', '$document', function($browser, $window, $document) {
8566 return createHttpBackend($browser, createXhr, $browser.defer, $window.angular.callbacks, $document[0]);
8567 }];
8568}
8569
8570function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) {
8571 var ABORTED = -1;

Callers

nothing calls this directly

Calls 1

createHttpBackendFunction · 0.70

Tested by

no test coverage detected