zend-diactoros icon indicating copy to clipboard operation
zend-diactoros copied to clipboard

trailer headers for stream responses

Open drscre opened this issue 8 years ago • 1 comments

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?

drscre avatar Feb 14 '17 22:02 drscre

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.

weierophinney avatar Dec 31 '19 22:12 weierophinney