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 149
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

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.

We are not traversing through the payload. we are just creating these variables so that we can process some actions only in case of error (target or proxy).

So even we are just creating these variables will the streaming stop?

Yes, the streaming will stop before sending to the client app. Once you try to get the response using a policy, this will interpret the response is getting accumulated as the policy similar to the consumer application and after the policy again the response will be like without stream.