Restler icon indicating copy to clipboard operation
Restler copied to clipboard

Streamed response

Open quazardous opened this issue 6 years ago • 4 comments

Hi,

I love restler !

I want to know if it is possible to achieve streamed response in Restler ? like http://symfony.com/doc/master/components/http_foundation.html#streaming-a-response

in luracast you usually return static sets of data and luracast takes care of the final data format.

Is it possible to return a special object that say "I will be a dataset soon" (somewhat like a promise with a callback).

The use case could be wrapping request from a backend server that serve very long response and avoid memory leak/consumption keeping the full dataset.

quazardous avatar Jun 02 '18 06:06 quazardous

Should be fairly straightforward with the upcoming version of Restler

See https://github.com/Arul-/reactive-restler/

Arul- avatar Jun 02 '18 16:06 Arul-

Cool. What is the release status ?

quazardous avatar Jun 02 '18 16:06 quazardous

Will be released this year!

Arul- avatar Jun 03 '18 02:06 Arul-

Can't wait :/

quazardous avatar Jun 05 '18 20:06 quazardous