How do I capture a “response end” event in node.js+express?

后端 未结 0 998
旧巷少年郎
旧巷少年郎 2021-02-11 14:37

I\'d like to write an express middleware function that sets up a listener on the response\'s \'end\' event, if one exists. The purpose is to do cleanup based on the http respon

相关标签:
回答
  • 消灭零回复
提交回复
热议问题