Hi, I am writing directly to php://output in my action because I do not want to buffer (large) output in memory or on disk. However, Slim quietly elects not to send headers in this case, because ResponseEmitter::emit notices headers_sent now returns true. How can I still send custom headers whilst writing output directly to PHP's output stream?
Note: Symfony supports this with StreamedResponse.
Hi, I am writing directly to
php://outputin my action because I do not want to buffer (large) output in memory or on disk. However, Slim quietly elects not to send headers in this case, becauseResponseEmitter::emitnoticesheaders_sentnow returnstrue. How can I still send custom headers whilst writing output directly to PHP's output stream?Note: Symfony supports this with StreamedResponse.