# Access body from go plugin

**URL:** <https://discuss.konghq.com/t/access-body-from-go-plugin/5835>\
**Category:** Questions\
**Created:** [March 23, 2020, 7:58am UTC](https://discuss.konghq.com/t/access-body-from-go-plugin/5835 "2020-03-23T07:58:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fergonco](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fergonco](https://discuss.konghq.com/u/fergonco)\
**Post date:** [March 23, 2020, 7:58am UTC](https://discuss.konghq.com/t/access-body-from-go-plugin/5835/1 "2020-03-23T07:58:06Z")

</div>

Hi,

In a Lua plugin it is possible to access the response body using the body\_filter method.

Is it possible to access it with a Go plugin? The documentation states that we can only define these event methods: Certificate, Rewrite, Access, Preread and Log. From those, only Log takes place after the request has been processed, and I can’t see any way to access the body with the API.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![gsdenys](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/gsdenys/32/1939_2.png) [@gsdenys](https://discuss.konghq.com/u/gsdenys)\
**Post date:** [May 12, 2020, 9:54pm UTC](https://discuss.konghq.com/t/access-body-from-go-plugin/5835/2 "2020-05-12T21:54:30Z")

</div>

@fergonco had you any advance with this topic? I’m really interested in.

---

<div class="post-metadata">

**Author:** ![antoniott15](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/antoniott15/32/1964_2.png) [@antoniott15](https://discuss.konghq.com/u/antoniott15)\
**Post date:** [May 20, 2020, 7:03pm UTC](https://discuss.konghq.com/t/access-body-from-go-plugin/5835/3 "2020-05-20T19:03:51Z")

</div>

@fergonco @gsdenys Do you have any information on this? I’m interested

---

<div class="post-metadata">

**Author:** ![gsdenys](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/gsdenys/32/1939_2.png) [@gsdenys](https://discuss.konghq.com/u/gsdenys)\
**Post date:** [May 20, 2020, 10:36pm UTC](https://discuss.konghq.com/t/access-body-from-go-plugin/5835/4 "2020-05-20T22:36:13Z")

</div>

Not yet… I’d write my plugin in Lua

---

<div class="post-metadata">

**Author:** ![fergonco](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fergonco](https://discuss.konghq.com/u/fergonco)\
**Post date:** [May 7, 2021, 4:11pm UTC](https://discuss.konghq.com/t/access-body-from-go-plugin/5835/5 "2021-05-07T16:11:13Z")

</div>

Sorry for the super late response. I didn’t get any notification in the email.

I ended up creating a Lua plugin that sends the body to a go server sidecar, using a producer/consumer pattern, which actually does the job.
