Luracast / Restler

Simple and effective multi-format Web API Server to host your PHP API as Pragmatic REST and/or RESTful API
http://luracast.com/products/restler/
GNU Lesser General Public License v2.1
1.36k stars 315 forks source link

Streamed response #599

Open quazardous opened 6 years ago

quazardous commented 6 years ago

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.

Arul- commented 6 years ago

Should be fairly straightforward with the upcoming version of Restler

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

quazardous commented 6 years ago

Cool. What is the release status ?

Arul- commented 6 years ago

Will be released this year!

quazardous commented 6 years ago

Can't wait :/