This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author quentel
Recipients martin.panter, quentel
Date 2017-06-06.20:20:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1496780452.82.0.327024282408.issue30576@psf.upfronthosting.co.za>
In-reply-to
Content
I propose this as a minor improvement to the built-in server, like the support of browser cache that will be included in Python 3.7 (issue #29654, PR #298). I understand that the server is not supposed to be full-featured, but HTTP compression is widespread, reduces network load and is easy to implement (the code will be very similar to SimpleXMLRPCRequestHandler).

Content-Encoding is used because it's the most simple to implement. Chunked transfer for large amount of data seems to me to be out of the scope of the built-in server.

Content-Length is set to the length of the compressed data. I don't understand your question about persistent connections : the proposal covers a single request / response sequence, it doesn't depend on the underlying TCP connection being reused or not.

From what I understand, issue #1508475 refers to the http client, not server ; and #4733 refers to another meaning of encoding (conversion from characters to bytes with a charset such as utf-8), not to HTTP compression, which unfortunately also uses "encoding" in headers names.
History
Date User Action Args
2017-06-06 20:20:52quentelsetrecipients: + quentel, martin.panter
2017-06-06 20:20:52quentelsetmessageid: <1496780452.82.0.327024282408.issue30576@psf.upfronthosting.co.za>
2017-06-06 20:20:52quentellinkissue30576 messages
2017-06-06 20:20:52quentelcreate