Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trailer headers for stream responses #15

Open
weierophinney opened this issue Dec 31, 2019 · 0 comments
Open

trailer headers for stream responses #15

weierophinney opened this issue Dec 31, 2019 · 0 comments
Labels
Question Further information is requested

Comments

@weierophinney
Copy link
Member

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?


Originally posted by @drscre at zendframework/zend-diactoros#231

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants