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.
What production ready web servers exist on PyPi? Are there any that
don't bring lots of baggage, their own enhanced way of doing things?
The nice thing about the http.server is that it does things in a
standard-conforming way, the bad thing about it is that it doesn't
implement all the standards, and isn't maintained very well.