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.
Stuart
----- Original Message -----
From: "Adrian Mitev" <adrian.mitev(a)gmail.com>
To: undertow-dev(a)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(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/undertow-dev