Kong 2.2.0 introduces a new response phase that according to the changelog allows to manipulate both the response headers and the response body in the same phase.
However, while kong.service.response.get_raw_body()
and kong.service.response.get_body()
are supported in this phase, there is no kong.response.set_raw_body()
nor kong.response.set_body()
.
How can the response body be manipulated in the response phase?
Thanks