(status, data, headers, statusText)
| 1506 | originalHttpBackend = $delegate.$$originalHttpBackend || $delegate; |
| 1507 | |
| 1508 | function createResponse(status, data, headers, statusText) { |
| 1509 | if (angular.isFunction(status)) return status; |
| 1510 | |
| 1511 | return function() { |
| 1512 | return angular.isNumber(status) |
| 1513 | ? [status, data, headers, statusText, 'complete'] |
| 1514 | : [200, status, data, headers, 'complete']; |
| 1515 | }; |
| 1516 | } |
| 1517 | |
| 1518 | // TODO(vojta): change params to: method, url, data, headers, callback |
| 1519 | function $httpBackend(method, url, data, callback, headers, timeout, withCredentials, responseType, eventHandlers, uploadEventHandlers) { |
no outgoing calls
no test coverage detected