Message299044
In the latest version of the Pull Request (https://github.com/python/cpython/pull/2078/commits/6466c93555bec521860c57e832b691fe7f0c6c20) :
- compression is disabled by default (compressed_types is set to [])
- as suggested by Chris Barker in the discussion on python-ideas, I added a list of commonly compressed types that can be used as the value of compressed_types in subclasses of SimpleHTTPRequestHandler. For want of official sources I took the list from https://github.com/h5bp/server-configs-apache.
- a command-line option --gzip has been introduced, when it is set, the list of commonly compressed types is used
- the implementation of compression for "big files" has been changed : as suggested by Victor and Christian, no more temporary file, compressed data is now sent as chunks using Chunked Transfer Encoding. The file object returned by send_head() is a generator that produces the chunks of compressed data |
|
Date |
User |
Action |
Args |
2017-07-25 08:00:41 | quentel | set | recipients:
+ quentel, terry.reedy, vstinner, christian.heimes, v+python, r.david.murray, martin.panter |
2017-07-25 08:00:41 | quentel | set | messageid: <1500969641.81.0.422302965147.issue30576@psf.upfronthosting.co.za> |
2017-07-25 08:00:41 | quentel | link | issue30576 messages |
2017-07-25 08:00:41 | quentel | create | |
|