MCPcopy
hub / github.com/binux/qiandao / transformResponse

Function transformResponse

web/static/components/angularjs/angular.js:8088–8096  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

8086 return promise;
8087
8088 function transformResponse(response) {
8089 // make a copy since the response must be cacheable
8090 var resp = extend({}, response, {
8091 data: transformData(response.data, response.headers, config.transformResponse)
8092 });
8093 return (isSuccess(response.status))
8094 ? resp
8095 : $q.reject(resp);
8096 }
8097
8098 function mergeHeaders(config) {
8099 var defHeaders = defaults.headers,

Callers

nothing calls this directly

Calls 3

extendFunction · 0.85
transformDataFunction · 0.85
isSuccessFunction · 0.85

Tested by

no test coverage detected