Middleware to send a PSR-7 response using header() and echo
Middleware to send (or emit) a PSR-7 response object using
echo and return the sent response. This middleware is intended to go at the top of the middleware stack in order to get the response generated by the inner middlewares and send to the browser.
This package is installable and autoloadable via Composer as middlewares/emitter.
composer require middlewares/emitter
Dispatcher::run([ new Middlewares\Emitter(), // Here the rest of your middlewares ]);
Maximum output buffering size for each iteration. By default is
$emitter = (new Middlewares\Emitter())->maxBufferLength(512);
The MIT License (MIT). Please see LICENSE for more information.