Message298783
I used a lot http.server in the past to transfer files between two computers. I like transparent compression on the file. The implementation doesn't seem so complex, gzip is now standard and client HTTP headers are used to decide if gzip is wanted or not.
But I have comments on the current implementation.
My main question is on the Content-Length. Can we skip it to not have to compress the whole file just to get its size, whereas we can use gzip as a "stream" when compress while we write compressed bytes on the socket? |
|
Date |
User |
Action |
Args |
2017-07-21 08:43:38 | vstinner | set | recipients:
+ vstinner, terry.reedy, v+python, r.david.murray, quentel, martin.panter |
2017-07-21 08:43:38 | vstinner | set | messageid: <1500626618.86.0.271739714782.issue30576@psf.upfronthosting.co.za> |
2017-07-21 08:43:38 | vstinner | link | issue30576 messages |
2017-07-21 08:43:38 | vstinner | create | |
|