您可以从Express Req对象访问KOA上下文吗?
我们代码的一部分只能访问节点/express req
对象。
但是,我们需要访问KOA请求和/或KOA上下文。
KOA是否完全将上下文注入节点req
对象?
(附加上下文:我们将KOA Multer与S3 Multer一起使用,S3 Multer仅在其回调中提供req
,因为它显然是为原始的Multer库设计的。)
A part of our code only has access to the Node/Express req
object.
However, we need to access the Koa Request and/or Koa Context.
Does Koa inject the Context into the Node req
object at all?
(Additional context: we're using Koa Multer together with S3 Multer, and S3 Multer only provides req
in its callbacks, since it was obviously designed for the original Multer library.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论