MCPcopy Create free account
hub / github.com/apache/cloudstack / resolvePromise

Function resolvePromise

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

* Resolves the raw $http promise.

(response, status, headers)

Source from the content-addressed store, hash-verified

9175 * Resolves the raw $http promise.
9176 */
9177 function resolvePromise(response, status, headers) {
9178 // normalize internal statuses to 0
9179 status = Math.max(status, 0);
9180
9181 (isSuccess(status) ? deferred.resolve : deferred.reject)({
9182 data: response,
9183 status: status,
9184 headers: headersGetter(headers),
9185 config: config
9186 });
9187 }
9188
9189
9190 function removePendingReq() {

Callers 2

sendReqFunction · 0.85
doneFunction · 0.85

Calls 2

isSuccessFunction · 0.85
headersGetterFunction · 0.85

Tested by

no test coverage detected