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

Function transformResponse

test/angular/1.7/angular.js:13035–13043  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

13033 }
13034
13035 function transformResponse(response) {
13036 // make a copy since the response must be cacheable
13037 var resp = extend({}, response);
13038 resp.data = transformData(response.data, response.headers, response.status,
13039 config.transformResponse);
13040 return (isSuccess(response.status))
13041 ? resp
13042 : $q.reject(resp);
13043 }
13044 }
13045
13046 $http.pendingRequests = [];

Callers

nothing calls this directly

Calls 3

extendFunction · 0.70
transformDataFunction · 0.70
isSuccessFunction · 0.70

Tested by

no test coverage detected