(status, data, headers, statusText)
| 1357 | originalHttpBackend = $delegate.$$originalHttpBackend || $delegate; |
| 1358 | |
| 1359 | function createResponse(status, data, headers, statusText) { |
| 1360 | if (angular.isFunction(status)) return status; |
| 1361 | |
| 1362 | return function() { |
| 1363 | return angular.isNumber(status) |
| 1364 | ? [status, data, headers, statusText, 'complete'] |
| 1365 | : [200, status, data, headers, 'complete']; |
| 1366 | }; |
| 1367 | } |
| 1368 | |
| 1369 | // TODO(vojta): change params to: method, url, data, headers, callback |
| 1370 | function $httpBackend(method, url, data, callback, headers, timeout, withCredentials, responseType, eventHandlers, uploadEventHandlers) { |
no outgoing calls
no test coverage detected