(status, data, headers, statusText)
| 1327 | copy = angular.copy; |
| 1328 | |
| 1329 | function createResponse(status, data, headers, statusText) { |
| 1330 | if (angular.isFunction(status)) return status; |
| 1331 | |
| 1332 | return function() { |
| 1333 | return angular.isNumber(status) |
| 1334 | ? [status, data, headers, statusText] |
| 1335 | : [200, status, data, headers]; |
| 1336 | }; |
| 1337 | } |
| 1338 | |
| 1339 | // TODO(vojta): change params to: method, url, data, headers, callback |
| 1340 | function $httpBackend(method, url, data, callback, headers, timeout, withCredentials, responseType, eventHandlers, uploadEventHandlers) { |
no outgoing calls
no test coverage detected