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

Function transformResponse

test/angular/1.3/angular.js:9449–9460  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

9447 return promise;
9448
9449 function transformResponse(response) {
9450 // make a copy since the response must be cacheable
9451 var resp = extend({}, response);
9452 if (!response.data) {
9453 resp.data = response.data;
9454 } else {
9455 resp.data = transformData(response.data, response.headers, response.status, config.transformResponse);
9456 }
9457 return (isSuccess(response.status))
9458 ? resp
9459 : $q.reject(resp);
9460 }
9461
9462 function executeHeaderFns(headers) {
9463 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