Closed VetchM closed 2 years ago
In RequestFilter, you can use the Var
method to get variables: https://github.com/apache/apisix-go-plugin-runner/blob/master/pkg/http/http.go#L61
Thanks, accessing variable will make a RPC to APISIX, right?
Yes.
In addition, pay attention that the Var
method is currently only available in RequestFilter, and not yet supported in ResponseFilter.
Looks like it's solved, reopen if needed.
Issue description
I want to access APISIX variables(https://apisix.apache.org/zh/docs/apisix/apisix-variable/) like
route_name
,service_name
in my own plugin, how to achieve this?Environment
uname -a
):