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()
.