有 connect.static 的事件吗?
中文件服务的开始和结束做出反应
我需要对Node.js + connect + connect.static() + connect.staticCache() 环境
。我找不到任何有关它的文档。
connect.static (+ static.cache) 是否提供任何事件?
I need to react to the start and end of file-serves from a
Node.js + connect + connect.static() + connect.staticCache() environment.
I can't find any documentation on it.
Does connect.static (+ static.cache) provide any events?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看
connect
的源代码,它似乎在请求上发出一个static
事件,传递流。所以像下面这样的东西应该有效:Looking at the source code for
connect
, it seems that it issues astatic
event on the request, passing the stream. So something like the below should work: