apache / apisix-go-plugin-runner

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

request help: How can I associate request and response #126

Closed zhl11b closed 1 year ago

zhl11b commented 1 year ago

Issue description

Environment

soulbird commented 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)

zhl11b commented 1 year ago

@soulbird

Thank you,it works for me.

YogSothoth-mxc commented 10 months ago

@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.