MCPcopy Index your code
hub / github.com/angular-ui/ui-router / createResponse

Function createResponse

test/angular/1.5/angular-mocks.js:1329–1337  ·  view source on GitHub ↗
(status, data, headers, statusText)

Source from the content-addressed store, hash-verified

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) {

Callers 1

createHttpBackendMockFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected