Closed
Description
Ever since 8e2554e StreamedResponse
s are no longer working since in https://github.com/php-pm/php-pm-httpkernel/blob/master/Bridges/HttpKernel.php#L173 $content
will be false
. Instead or additionally, a call to syResponse->sendContent()
is needed.
However, since StreamedResponse
s can become huge, their output should rather be parsed in a streamed way instead of just concatenating to a buffer.
@marcj any idea how this could be done, i.e. ob_get_contents()
in a streamed way? Like capturing our own STDOUT to a readable stream? Also, the contents should be piped on to the ReactReponse immediately.
- add StreamedResponse back in
- push/pull in async manner