Here is Stuarts response from a similar question.
You need to implement org.xnio.conduits.StreamSinkConduit and add io.
There is no simple in memory representation of the response, because it
may be to large for the server to buffer (or more likely the server does
not want to buffer it for performance reasons). Implementing this will
allow you to modify the response as it is being written.
On Thu, Dec 29, 2016 at 1:56 AM, 翟 小斌 <zhai-xiaobin(a)hotmail.com> wrote:
How to get the response body in undertow HttpHandler ?
I need to modify response content in the httpHandler.
undertow-dev mailing list