We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Firstly, read this article to understand how response chunking works and how it might benefit your app.
Calling $response->chunk() for the first time will set the appropriate header (Transfer-Encoding: chunked).
$response->chunk()
Transfer-Encoding: chunked
To send a string as a chunk
$response->chunk($str);
To flush the contents of the output buffer as a response chunk
$response->chunk();
To render a view and automatically flush the output buffer as a chunk, set the third parameter to true
true
$response->render('mytemplate.phtml', null, true);