Skip to content

Tag: netflix-zuul

How to get response body in Zuul post filter?

How it is possible to read a response body while using Zuul as a proxy in post filter? I am trying to call the code like this: Answer I’ve managed to overcome this. The solution consists of 4 steps: Read ctx.getResponseDataStream() into a ByteArrayOutputStream Copy OutputStream to 2 InputStreams. Use one of it for your custom purposes. Use the second