Open zxyao145 opened 6 months ago
@zxyao145 Just use res.Var("
Example: method, err := res.Var("request_method")
List of nginx variables can be seen in the nginx documentation.
een in the nginx documentation.nginx 变量列表可以在 nginx 文档中查看。
@zxyao145 Just use res.Var("") to get the request data.
Example:
method, err := res.Var("request_method")
List of nginx variables can be seen in the nginx documentation.
Thanks a lot! I am glad to receive your reply. Recently, I have been busy with other things and do not have time to do work related to Apisix. If there are any conclusions, I will synchronize again.
Issue description
I am trying to get pkgHTTP.Request in ResponseFilter method. I have modified the
HTTPRespCall
method inapisix-go-plugin-runner/internal/plugin/plugin.go
as follows:But I found that all the properties I received was empty. How should I handle it?
If this modification is completed, I am willing to submit a PR.
Environment
uname -a
): debian