Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
tornado.web.GZipContentEncoding Class Reference
Inheritance diagram for tornado.web.GZipContentEncoding:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

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).

Definition at line 2519 of file web.py.


Constructor & Destructor Documentation

def tornado.web.GZipContentEncoding.__init__ (   self,
  request 
)

Reimplemented from tornado.web.OutputTransform.

Definition at line 2536 of file web.py.


Member Function Documentation

def tornado.web.GZipContentEncoding._compressible_type (   self,
  ctype 
) [private]

Definition at line 2539 of file web.py.

def tornado.web.GZipContentEncoding.transform_chunk (   self,
  chunk,
  finishing 
)

Reimplemented from tornado.web.OutputTransform.

Definition at line 2568 of file web.py.

def tornado.web.GZipContentEncoding.transform_first_chunk (   self,
  status_code,
  headers,
  chunk,
  finishing 
)

Reimplemented from tornado.web.OutputTransform.

Definition at line 2542 of file web.py.


Member Data Documentation

Definition at line 2542 of file web.py.

Definition at line 2542 of file web.py.

Definition at line 2536 of file web.py.

Initial value:
set(["application/javascript", "application/x-javascript",
                         "application/xml", "application/atom+xml",
                         "application/json", "application/xhtml+xml"])

Definition at line 2531 of file web.py.

Definition at line 2534 of file web.py.


The documentation for this class was generated from the following file:


rosbridge_server
Author(s): Jonathan Mace
autogenerated on Wed Sep 13 2017 03:18:21