zend-diactoros
zend-diactoros copied to clipboard
trailer headers for stream responses
My php service generates a very big list of items. I decided to stream items on the fly as they are generated to save memory. I implemented response body as a custom stream that wraps a generator which yields items.
Now I need to append a checksum trailer header to that stream response, so clients can check response validity.
What is a proper way of appending trailer header to a stream response in diactoros?
This repository has been closed and moved to laminas/laminas-diactoros; a new issue has been opened at https://github.com/laminas/laminas-diactoros/issues/15.