M
Manlio Perillo
Hi.
RFC 2068 (Hypertext Transfer Protocol -- HTTP/1.1), introduces 4
encoding names:
identity
gzip (x-gzip)
compress (x-compress)
deflate
Unfortunately standard Python library does not includes these codecs
in the codec registry, ad example with an http_encodings package.
This will allow one to do:
data = read().encode( getheader('Content-encoding').split() )
Actually identity codec is banal.
-gzip: it is easy to implement using gzip module (I have written the
encode and decode methods, but it should be possible to write also
StreamWriter and StreamReader classes)
-deflate: codec is the same as zlib_codec?
-compress: where can I find it?
Thanks and regards Manlio Perillo
RFC 2068 (Hypertext Transfer Protocol -- HTTP/1.1), introduces 4
encoding names:
identity
gzip (x-gzip)
compress (x-compress)
deflate
Unfortunately standard Python library does not includes these codecs
in the codec registry, ad example with an http_encodings package.
This will allow one to do:
data = read().encode( getheader('Content-encoding').split() )
Actually identity codec is banal.
-gzip: it is easy to implement using gzip module (I have written the
encode and decode methods, but it should be possible to write also
StreamWriter and StreamReader classes)
-deflate: codec is the same as zlib_codec?
-compress: where can I find it?
Thanks and regards Manlio Perillo