MCPcopy Create free account
hub / github.com/apache/cloudstack / $HttpBackendProvider

Function $HttpBackendProvider

tools/ngui/static/js/lib/angular.js:9239–9244  ·  view source on GitHub ↗

* @ngdoc object * @name ng.$httpBackend * @requires $browser * @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

()

Source from the content-addressed store, hash-verified

9237 * $httpBackend} which can be trained with responses.
9238 */
9239function $HttpBackendProvider() {
9240 this.$get = ['$browser', '$window', '$document', function($browser, $window, $document) {
9241 return createHttpBackend($browser, XHR, $browser.defer, $window.angular.callbacks,
9242 $document[0], $window.location.protocol.replace(':', ''));
9243 }];
9244}
9245
9246function createHttpBackend($browser, XHR, $browserDefer, callbacks, rawDocument, locationProtocol) {
9247 // TODO(vojta): fix the signature

Callers

nothing calls this directly

Calls 2

createHttpBackendFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected