Here is Stuarts response from a similar question.
You need to implement org.xnio.conduits.StreamSinkConduit and add io.
undertow.server.HttpServerExchange#addResponseWrapper
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.
Stuart
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.
thanks all.
_______________________________________________
undertow-dev mailing list
undertow-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/undertow-dev