MCPcopy Index your code
hub / github.com/restify/node-restify / send

Function send

test/plugins/inflightRequestThrottle.test.js:22–27  ·  view source on GitHub ↗
(body)

Source from the content-addressed store, hash-verified

20 var opts = { server: fakeServer(10), limit: 1 };
21 var plugin = inflightRequestThrottle(opts);
22 function send(body) {
23 assert(logged, 'Should have emitted a log');
24 assert.equal(body.statusCode, 503, 'Defaults to 503 status');
25 assert(body instanceof Error, 'Defaults to error body');
26 done();
27 }
28 function next(err) {
29 assert.equal(err.name, 'ServiceUnavailableError');
30 done();

Callers 1

serveStaticFilesFunction · 0.85

Calls 1

doneFunction · 0.85

Tested by

no test coverage detected