I have a http triggered Azure Function with a canned response returning a collection of json objects. The response is flushed every 10 objects with a 2 second delay in between.
When calling this endpoint directly to the Function I receive the flushed response immediately with no buffering - 10 complete objects with a 2 second delay.
When I call this endpoint through Azure's APIM the response is no longer flushed immediately. I get partial objects and the response appears to be hitting a buffer which is only flushed after a certain time or size.
How can I force APIM to not buffer the response?
I was able to get a response from Microsoft on an undocumented attribute to disable response buffering. Yet to test this extensively yet, but appears to work.