Closed
Description
@nicolas-grekas Just noticed that (by default) HttpClient doesn't support compression. I think this should be emphasized more in the docs, since it's an easy (?) way to speed things up, isn't it?
https://symfony.com/doc/current/http_client.html#making-requests
HTTP compression and chunked transfer encoding are automatically enabled when both your PHP runtime and the remote server support them.
Some questions I'd like to expand on (but don't know the answers):
- "HTTP compression" refers to an "Accept-Encoding" HTTP header being sent in the request?
- How can I check what my PHP runtime supports?
- If HttpClient comes to the conclusion that my PHP supports gzip and deflate, it will send?:
Accept-Encoding: gzip, deflate
- Since Transfer-Encoding is dead in HTTP/2, it's probably not so important to give more details about it?