MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / transformResponse

Function transformResponse

code/songhop/www/lib/angular/angular.js:9340–9351  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

9338 return promise;
9339
9340 function transformResponse(response) {
9341 // make a copy since the response must be cacheable
9342 var resp = extend({}, response);
9343 if (!response.data) {
9344 resp.data = response.data;
9345 } else {
9346 resp.data = transformData(response.data, response.headers, config.transformResponse);
9347 }
9348 return (isSuccess(response.status))
9349 ? resp
9350 : $q.reject(resp);
9351 }
9352
9353 function mergeHeaders(config) {
9354 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