[undertow-dev] get response content in HttpHandler

Bill O'Neil bill at dartalley.com
Thu Dec 29 08:04:49 EST 2016


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 at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/undertow-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20161229/6b7eda81/attachment.html 


More information about the undertow-dev mailing list