Closed zhl11b closed 1 year ago
See https://github.com/apache/apisix-go-plugin-runner/blob/master/pkg/http/http.go#L103 . Then you need to understand the variable rules of APISIX and Nginx. To get a request header here, you can use r.Var(http_request_id)
@soulbird
Thank you,it works for me.
@soulbird
Thank you,it works for me.
How did you solve this problem? I used r.Var("http_request_id") or r.Var("X-Request-Id"). The problem still exists.
Issue description
Environment
uname -a
):Linux 3a52d2b13621 5.4.0-125-generic #141-Ubuntu SMP Wed Aug 10 13:42:03 UTC 2022 x86_64 GNU/Linux In ResponseFilter(),I want get request,so I save request in RequestFilter.But there is a problem: I can't associate request and response,I use system built-in plugin ”request-id“,I can get X-Request-Id in RequestFilter,but I can't get X-Request-Id in RequestFilter,what should I do?