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

Function transformResponse

lib/test/angular/1.4.3/angular.js:10088–10099  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

10086 return promise;
10087
10088 function transformResponse(response) {
10089 // make a copy since the response must be cacheable
10090 var resp = extend({}, response);
10091 if (!response.data) {
10092 resp.data = response.data;
10093 } else {
10094 resp.data = transformData(response.data, response.headers, response.status, config.transformResponse);
10095 }
10096 return (isSuccess(response.status))
10097 ? resp
10098 : $q.reject(resp);
10099 }
10100
10101 function executeHeaderFns(headers, config) {
10102 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