MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / $HttpBackendProvider

Function $HttpBackendProvider

code/songhop/www/lib/angular/angular.js:9693–9697  ·  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

9691 * $httpBackend} which can be trained with responses.
9692 */
9693function $HttpBackendProvider() {
9694 this.$get = ['$browser', '$window', '$document', function($browser, $window, $document) {
9695 return createHttpBackend($browser, createXhr, $browser.defer, $window.angular.callbacks, $document[0]);
9696 }];
9697}
9698
9699function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) {
9700 // TODO(vojta): fix the signature

Callers

nothing calls this directly

Calls 1

createHttpBackendFunction · 0.70

Tested by

no test coverage detected