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

Function transformResponse

test/angular/1.2/angular.js:8214–8222  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

8212 return promise;
8213
8214 function transformResponse(response) {
8215 // make a copy since the response must be cacheable
8216 var resp = extend({}, response, {
8217 data: transformData(response.data, response.headers, config.transformResponse)
8218 });
8219 return (isSuccess(response.status))
8220 ? resp
8221 : $q.reject(resp);
8222 }
8223
8224 function mergeHeaders(config) {
8225 var defHeaders = defaults.headers,

Callers

nothing calls this directly

Calls 3

extendFunction · 0.70
transformDataFunction · 0.70
isSuccessFunction · 0.70

Tested by

no test coverage detected