Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[RFC] Synchronise header and body state of the Request / Response #24
I would like to add some words about having consistency in Request / Response body and their headers.
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 ?