[undertow-dev] Rewrite response headers in ProxyHandler

Stuart Douglas sdouglas at redhat.com
Wed Apr 22 19:48:14 EDT 2015

You can use io.undertow.server.HttpServerExchange#addResponseCommitListener to modify the response before it is sent to the client. Install a handler before the proxy handler that adds one of these to the exchange. 


----- Original Message -----
> From: "Adrian Mitev" <adrian.mitev at gmail.com>
> To: undertow-dev at lists.jboss.org
> Sent: Thursday, 23 April, 2015 2:12:31 AM
> Subject: [undertow-dev] Rewrite response headers in ProxyHandler
> Hi all! I have a ProxyHandler that proxies specific path. However I need to
> overwrite the response headers returned by the remote path. Is it possible
> to do that? I explored the PredicatesHandler but couldn't find a way with
> it.
> _______________________________________________
> undertow-dev mailing list
> undertow-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/undertow-dev

More information about the undertow-dev mailing list