MCPcopy
hub / github.com/angular-ui/ui-router / transformResponse

Function transformResponse

test/angular/1.4/angular.js:10599–10607  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

10597 return promise;
10598
10599 function transformResponse(response) {
10600 // make a copy since the response must be cacheable
10601 var resp = extend({}, response);
10602 resp.data = transformData(response.data, response.headers, response.status,
10603 config.transformResponse);
10604 return (isSuccess(response.status))
10605 ? resp
10606 : $q.reject(resp);
10607 }
10608
10609 function executeHeaderFns(headers, config) {
10610 var headerContent, processedHeaders = {};

Callers

nothing calls this directly

Calls 3

extendFunction · 0.70
transformDataFunction · 0.70
isSuccessFunction · 0.70

Tested by

no test coverage detected