Public Member Functions | |
| def | __init__ |
| def | decompress |
| def | flush |
| def | unconsumed_tail |
Public Attributes | |
| decompressobj | |
Streaming gzip decompressor. The interface is like that of `zlib.decompressobj` (without some of the optional arguments, but it understands gzip headers and checksums.
| def tornado.util.GzipDecompressor.__init__ | ( | self | ) |
| def tornado.util.GzipDecompressor.decompress | ( | self, | |
| value, | |||
max_length = None |
|||
| ) |
Decompress a chunk, returning newly-available data. Some data may be buffered for later processing; `flush` must be called when there is no more input data to ensure that all data was processed. If ``max_length`` is given, some input data may be left over in ``unconsumed_tail``; you must retrieve this value and pass it back to a future call to `decompress` if it is not empty.
| def tornado.util.GzipDecompressor.flush | ( | self | ) |
| def tornado.util.GzipDecompressor.unconsumed_tail | ( | self | ) |