Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

trailer headers for stream responses #231

Open
drscre opened this issue Feb 14, 2017 · 1 comment
Open

trailer headers for stream responses #231

drscre opened this issue Feb 14, 2017 · 1 comment

Comments

@drscre
Copy link

drscre commented Feb 14, 2017

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?

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas/laminas-diactoros; a new issue has been opened at laminas/laminas-diactoros#15.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants