[undertow-dev] How to modify the response with ProxyHandler

Stuart Douglas sdouglas at redhat.com
Fri Feb 22 07:25:08 EST 2019


io.undertow.server.HttpServerExchange#addResponseWrapper lets you add a
conduit that can modify the response.

Stuart

On Fri, Feb 22, 2019 at 11:13 PM Andrea Di Cesare <andrea at softinstigate.com>
wrote:

> Hi undertow-dev <undertow-dev at lists.jboss.org>,
>
> I'm using ProxyHandler with LoadBalancingProxyClient and in some cases I
> need to modify the response content received from the backed before sending
> it to the client.
>
> HttpServerExchange.addResponseCommitListener() allows to modify the
> response and using it I'm able, for instance, to add a response header but
> not modifyng the content from the backend since it is not available.
>
> Is it possible? What are the suggested ways of implementing this behavior?
>
> Thanks,
>  Andrea Di Cesare
>
>
> _______________________________________________
> 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/20190222/2bba9f6a/attachment.html 


More information about the undertow-dev mailing list