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

Function next

lib/chain.js:138–152  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

136 var index = 0;
137
138 function next(err) {
139 // next callback
140 var handler = self._stack[index++];
141
142 // all done or request closed
143 if (!handler || req.connectionState() === 'close') {
144 process.nextTick(function nextTick() {
145 return done(err, req, res);
146 });
147 return;
148 }
149
150 // call the handler
151 call(handler, err, req, res, self.onceNext ? self._once(next) : next);
152 }
153
154 next();
155 return;

Callers 15

chain.jsFile · 0.70
resolveFunction · 0.70
rejectFunction · 0.70
callFunction · 0.70
router.jsFile · 0.70
redirectFunction · 0.70
handleWithDomainFunction · 0.70
server.jsFile · 0.70
parseOauth2TokenFunction · 0.50
requestLoggerFunction · 0.50
parseAuthorizationFunction · 0.50
_jsonpFunction · 0.50

Calls 2

doneFunction · 0.85
callFunction · 0.85

Tested by

no test coverage detected