Node.js/Express.js: does response.send() can have a callback?
.send()
does not have a callback as it is not an asynchronous method. Also, it will never throw an error.
You can continue on writing code the method and you will be sure that the response has already been sent. Obviously, you won't be able to add anything to the response
variable afterwards since it's already been sent to the user.