If I called res.send()
, but didn\'t call next()
:
You don't need to call next()
to finish sending the response. res.send()
or res.json()
should end all writing to the response stream and send the response.
However, you absolutely can call next()
if you want to do further processing after the response is sent, just make sure you don't write to the response stream after you call res.send()
.
Simply
request and response
objects, so if you send the response
via any middleware all next middlewares will be skippednext();
but you can't do res.send()
or res.json()
further