apisix-go-plugin-runner icon indicating copy to clipboard operation
apisix-go-plugin-runner copied to clipboard

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

Open YogSothoth-mxc opened this issue 2 years ago • 1 comments

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

  • APISIX Go Plugin Runner's version:
  • APISIX version:
  • Go version:
  • OS (cmd: uname -a):

YogSothoth-mxc avatar Aug 18 '23 12:08 YogSothoth-mxc