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

Function resolvePromise

test/angular/1.2/angular.js:8486–8497  ·  view source on GitHub ↗

* Resolves the raw $http promise.

(response, status, headers, statusText)

Source from the content-addressed store, hash-verified

8484 * Resolves the raw $http promise.
8485 */
8486 function resolvePromise(response, status, headers, statusText) {
8487 // normalize internal statuses to 0
8488 status = Math.max(status, 0);
8489
8490 (isSuccess(status) ? deferred.resolve : deferred.reject)({
8491 data: response,
8492 status: status,
8493 headers: headersGetter(headers),
8494 config: config,
8495 statusText : statusText
8496 });
8497 }
8498
8499
8500 function removePendingReq() {

Callers 2

sendReqFunction · 0.70
doneFunction · 0.70

Calls 2

isSuccessFunction · 0.70
headersGetterFunction · 0.70

Tested by

no test coverage detected