hufeng commented on issue #257: URL: https://github.com/apache/dubbo-js/issues/257#issuecomment-1367188166
hi 有的,我们有middleware的扩展机制,可以在middleware进行处理 如: const dubbo = new Dubbo({...}) dubbo.use(async (ctx, next) => { ctx.attachments = {....} }) # 参考 https://github.com/apache/dubbo-js/blob/b3689422b7d5c1449fb98a46eba82170e1e1c5eb/packages/dubbo-consumer/src/context.ts#L45 https://github.com/apache/dubbo-js/blob/b3689422b7d5c1449fb98a46eba82170e1e1c5eb/packages/dubbo-consumer/src/context.ts#L255 penuel ***@***.***> 于2022年12月26日周一 17:12写道: > @hufeng <https://github.com/hufeng> 有没有例子说明下,middleware是怎么使用来传递上下文? > > — > Reply to this email directly, view it on GitHub > <https://github.com/apache/dubbo-js/issues/257#issuecomment-1365023579>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAECEEDUKG6V75BH4YJFYFTWPFORTANCNFSM5EZPH7EQ> > . > You are receiving this because you were mentioned.Message ID: > ***@***.***> > -- from Hufeng -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org