When Streaming is Enabled, the proxy is not able to read response.content

Hi,

I have requirement like need to enable request and response streaming and also will get response from back-end in encoded format, once We received response from back-end, need to decode and send back to client.

When we disable the streaming request and response, I able to read response content, which we received from back-end using "response.content" variable and decode and send back to client successfully.

But when i enable streaming on request and response, I am not able to read the response content using "response.content" variable."response.content" variable is always empty.

Please let me know how can solve this issue.

0 1 216
1 REPLY 1

Nope.

Streaming in the context of Apigee Edge means , the API Proxy does not get to read or modify the request or response content.

If you want to modify (decode) the response, you need to disable streaming.