node-server
node-server copied to clipboard
Support Node.js HTTP events for more granular control of server behavior.
Hi, I've created a discussion but it's worth adding it here as well.
Essentially Node.js has its own HTTP events such as close
| error
| finish
| timeout
that can be used with middleware like morgan to log/collect data and more.
To add more context, we use it to collect metrics such as response time, request ID (UUID generated by another middleware), and other things.