Public Member Functions | |
def | __init__ |
def | transform_chunk |
def | transform_first_chunk |
Static Public Attributes | |
tuple | CONTENT_TYPES |
int | MIN_LENGTH = 5 |
Private Member Functions | |
def | _compressible_type |
Private Attributes | |
_gzip_file | |
_gzip_value | |
_gzipping |
Applies the gzip content encoding to the response. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11 .. versionchanged:: 4.0 Now compresses all mime types beginning with ``text/``, instead of just a whitelist. (the whitelist is still used for certain non-text mime types).
def tornado.web.GZipContentEncoding.__init__ | ( | self, | |
request | |||
) |
Reimplemented from tornado.web.OutputTransform.
def tornado.web.GZipContentEncoding._compressible_type | ( | self, | |
ctype | |||
) | [private] |
def tornado.web.GZipContentEncoding.transform_chunk | ( | self, | |
chunk, | |||
finishing | |||
) |
Reimplemented from tornado.web.OutputTransform.
def tornado.web.GZipContentEncoding.transform_first_chunk | ( | self, | |
status_code, | |||
headers, | |||
chunk, | |||
finishing | |||
) |
Reimplemented from tornado.web.OutputTransform.
tuple tornado::web.GZipContentEncoding::CONTENT_TYPES [static] |
int tornado::web.GZipContentEncoding::MIN_LENGTH = 5 [static] |