On Fri, Nov 30, 2018 at 2:12 AM Brett Cannon <brett@python.org> wrote:


On Thu, 29 Nov 2018 at 14:12, Andrew Svetlov <andrew.svetlov@gmail.com> wrote:
Neither http.client nor http.server doesn't support compression (gzip/compress/deflate) at all.
I doubt if we want to add this feature: for client better to use requests or, well, aiohttp.
The same for servers: almost any production ready web server from PyPI supports compression.

There was actually a PR to add compressions support to http.server but I closed it in the name of maintainability since http.server, as you said, isn't for production use so compression isn't critical.

I remember this PR and agree with your decision.