Modifying response headers and body from golang plugin

Hi,

Can you please confirm whether response header and body modification is possible using a golang plugin?

The docs suggest that it’s not (//tyk.io/docs/plugins/supported-languages/golang/), and that only the 4 request events can be hooked into.

However, I see references to hooking into responses from the API and modifying them from plugins.

Are you able to confirm whether it is possible, and if so what the name of the hook is?

Thanks,

Kirk

Only Python response hooks at the moment, but Golang in the the pipeline for a nearby release.

Is this now supported?
I want to use Golang plugins to convert a go-struct response from my upstream API to JSON back to customers.

Not yet but you can use a Go plugin in the POST hook and do the upstream call there so you can modify returned data.

Hello :wave:
Are response hooks available now for golang in tyk 5;2+? Or plugins are the only way to achieve a response body update on the fly?

You can use Golang to modify a response as indicated in our doc. Or you can modify a response body middleware.

Hope this helps.