|
decode(encoding=None,
default_encoding=' utf-8 ' )
Decode cherrypy.request.params from str to unicode objects. |
source code
|
|
|
|
|
encode(encoding=None,
errors=' strict ' ,
text_only=True,
add_charset=True) |
source code
|
|
|
|
|
encode_string(encoding,
errors=' strict ' )
Encode a buffered response body. |
source code
|
|
|
find_acceptable_charset(encoding=None,
default_encoding=' utf-8 ' ,
errors=' strict ' ) |
source code
|
|
|
compress(body,
compress_level)
Compress 'body' at the given compress_level. |
source code
|
|
|
|
|
gzip(compress_level=9,
mime_types=[ ' text/html ' , ' text/plain ' ] )
Try to gzip the response body if Content-Type in mime_types. |
source code
|
|