MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / $HttpBackendProvider

Function $HttpBackendProvider

lib/test/angular/1.5.0/angular.js:11353–11357  ·  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

11351 * $httpBackend} which can be trained with responses.
11352 */
11353function $HttpBackendProvider() {
11354 this.$get = ['$browser', '$window', '$document', '$xhrFactory', function($browser, $window, $document, $xhrFactory) {
11355 return createHttpBackend($browser, $xhrFactory, $browser.defer, $window.angular.callbacks, $document[0]);
11356 }];
11357}
11358
11359function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) {
11360 // TODO(vojta): fix the signature

Callers

nothing calls this directly

Calls 1

createHttpBackendFunction · 0.70

Tested by

no test coverage detected