Skip to content

Support Symfony StreamedResponse again #36

Closed
@andig

Description

@andig

Ever since 8e2554e StreamedResponses 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 StreamedResponses 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions