MCPcopy Create free account
hub / github.com/apache/cloudstack / transformResponse

Function transformResponse

tools/ngui/static/js/lib/angular.js:8964–8972  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

8962 return promise;
8963
8964 function transformResponse(response) {
8965 // make a copy since the response must be cacheable
8966 var resp = extend({}, response, {
8967 data: transformData(response.data, response.headers, respTransformFn)
8968 });
8969 return (isSuccess(response.status))
8970 ? resp
8971 : $q.reject(resp);
8972 }
8973 }
8974
8975 $http.pendingRequests = [];

Callers

nothing calls this directly

Calls 3

extendFunction · 0.85
transformDataFunction · 0.85
isSuccessFunction · 0.85

Tested by

no test coverage detected