apache / apisix-go-plugin-runner

Go Plugin Runner for APISIX
https://apisix.apache.org/
Apache License 2.0
167 stars 69 forks source link

请求帮助:我需要将response与对应的request关联起来 #138

Open YogSothoth-mxc opened 10 months ago

YogSothoth-mxc commented 10 months ago

Issue description

我使用ext-plugin-post-req和ext-plugin-post-resp两个插件配合实现一些功能。 在ext-plugin-post-req阶段会缓存一些信息,需要在ext-plugin-post-resp的时候知道对应哪个request。

我已经尝试过使用request-id插件,但是在response阶段,ext-plugin-post-resp运行在request-id之前,所以无法从header中获取到request-id产生的id。

有什么方法可以在go-runner里,将response和request关联么?

Environment