Closed liuhuihui01 closed 2 years ago
You can get the request body through the r.Body()
API.
API documentation can refer to: https://pkg.go.dev/github.com/apache/apisix-go-plugin-runner@master/pkg/http#Request, this function will be officially released in 0.3.0 and is currently released in progress.
thanks
Issue description
在写一个鉴权的自定义插件,需要获取请求参数进行加签校验,防止请求参数被篡改,但是从pkg/http/Request 中如何获取请求(POST)参数body?
Environment
uname -a
):Linux e3191d6da83e 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 Linux