[undertow-dev] Handler to proxy & log request bodies

Alexander Reelsen alr at spinscale.de
Sat Aug 8 09:03:36 EDT 2015


Hey,

I am currently taking a look at undertow in order to write a small proxy
(which is dead easy), that should log the incoming request into another
data sink, then forward the request to the proxy, receive the response and
log some parts of the JSON response (together with the request data) into
that data sink plus forwarding it back to client.

Just reading the input stream in a special proxy handler does not seem to
work, so I guess there is a much smarter solution, like one of the
listeners I could add to an exchange.

Any help is highly appreciated. Thanks a lot!


--Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20150808/b7ed9d13/attachment.html 


More information about the undertow-dev mailing list