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

[RFC] Synchronise header and body state of the Request / Response #24

Closed
joelwurtz opened this issue Jul 7, 2017 · 0 comments
Closed

[RFC] Synchronise header and body state of the Request / Response #24

joelwurtz opened this issue Jul 7, 2017 · 0 comments
Labels

Comments

@joelwurtz
Copy link
Member

@joelwurtz joelwurtz commented Jul 7, 2017

I would like to add some words about having consistency in Request / Response body and their headers.
The goal is to ensure that the headers represents well the body of a message,

Like if there is a Content-Encoding header with a gzip value, then the body should be gzip encoded. And if the client decode the body to make it not gzip he must remove this header. (So a next client in a chain will correctly handle the request)

I have been looking at PSR7 and i see no reference of that, but don't know if this standard should handle this or if we should propose to "amend" PSR7 to add this behavior ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.