yanmxa commented on issue #136:
URL: 
https://github.com/apache/apisix-go-plugin-runner/issues/136#issuecomment-1792901845

   I think you can do it by following two steps:
   1. Add a method to the interface: [SetBody(body 
[]byte)](https://github.com/apache/apisix-go-plugin-runner/blob/f04930485b11ec29121585b2864157c957602be8/pkg/http/http.go#L37)
   2. Implement it in the [default 
request](https://github.com/apache/apisix-go-plugin-runner/blob/f04930485b11ec29121585b2864157c957602be8/internal/http/request.go#L41)
   ```golang
   func (r *Request) SetBody(body []byte) {
         r.body = body
   }
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to