You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/03/31 03:40:16 UTC

[GitHub] [apisix-go-plugin-runner] liuhuihui01 opened a new issue #77: request help: 如何再Filter方法里面获取到请求body?

liuhuihui01 opened a new issue #77:
URL: https://github.com/apache/apisix-go-plugin-runner/issues/77


   ### Issue description
   在写一个鉴权的自定义插件,需要获取请求参数进行加签校验,防止请求参数被篡改,但是从pkg/http/Request 中如何获取请求(POST)参数body?
   ### Environment
   
   * APISIX Go Plugin Runner's version: v0.2.0
   * APISIX version:2.12.1
   * Go version:go1.16.5 linux/amd64
   * OS (cmd: `uname -a`):Linux e3191d6da83e 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 Linux
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-go-plugin-runner] shuaijinchao commented on issue #77: request help: 如何在Filter方法里面获取到请求body?

Posted by GitBox <gi...@apache.org>.
shuaijinchao commented on issue #77:
URL: https://github.com/apache/apisix-go-plugin-runner/issues/77#issuecomment-1085380502


   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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-go-plugin-runner] liuhuihui01 commented on issue #77: request help: How to get request body in Filter?

Posted by GitBox <gi...@apache.org>.
liuhuihui01 commented on issue #77:
URL: https://github.com/apache/apisix-go-plugin-runner/issues/77#issuecomment-1085548175


   thanks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-go-plugin-runner] liuhuihui01 closed issue #77: request help: How to get request body in Filter?

Posted by GitBox <gi...@apache.org>.
liuhuihui01 closed issue #77:
URL: https://github.com/apache/apisix-go-plugin-runner/issues/77


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-go-plugin-runner] shuaijinchao commented on issue #77: request help: 如何在Filter方法里面获取到请求body?

Posted by GitBox <gi...@apache.org>.
shuaijinchao commented on issue #77:
URL: https://github.com/apache/apisix-go-plugin-runner/issues/77#issuecomment-1085374518


   You can get the request body through the `r.Body()` API.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org