Senthil Kumaran <sent...@uthcode.com> added the comment:

I think, the transparent compression should work at http.client level. I also 
agree with other points made by Serhiy:

- transparent decompression should delete headers Content-Encoding and 
Content-Length (this is as per RFC too)

- Should not do another compression if the user has a explicit specified intent 
of using Content-Encoding: gzip and is ready to do decompression himself.

- This transparent compression/decompression would require the availability 
gzip module, if not then the feature may be disabled and normal 
request-response cycle would proceed.

- I think, having it 'ON' with a flag to switch 'OFF' would be more desirable 
than having this feature via Handler. The reason being it can help in 
performance of any requests on servers that support it and browsers have 
adopted similar approach too.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue1508475>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to