Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Will Streaming stop if request and response variables are read

We have a API in which request and response streaming is enabled. We are also reading below variables using Assign Message policy for some conditions -

<AssignVariable>
     <Name>flow.request.payload</Name>
     <Ref>request.content</Ref>
</AssignVariable>
<AssignVariable>
     <Name>flow.response.payload</Name>
     <Ref>response.content</Ref>
</AssignVariable>

If we read these variables will the streaming stop and will it trigger buffering in the API proxy or these variable will be set to null and Streaming will continue?

Solved Solved
0 3 199
1 ACCEPTED SOLUTION

Not applicable

When streaming is enabled there shouldn't be any operation over the payload. So, the respone you may get is incorrect or streaming will not work properly for the consumer.

View solution in original post

3 REPLIES 3