Home | Trees | Indices | Help |
|
---|
|
object --+ | Entity --+ | RequestBody
The entity of the HTTP request.
|
|||
Inherited from |
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
bufsize = 8192 The buffer size used when reading the socket. |
|||
default_content_type =
This defines a default ``Content-Type`` to use if no Content-Type header is given. |
|||
maxbytes = None Raise ``MaxSizeExceeded`` if more bytes than this are read from the socket. |
|||
Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Process the request entity based on its Content-Type.
|
|
default_content_typeThis defines a default ``Content-Type`` to use if no Content-Type header is given. The empty string is used for RequestBody, which results in the request body not being read or parsed at all. This is by design; a missing ``Content-Type`` header in the HTTP request entity is an error at best, and a security hole at worst. For multipart parts, however, the MIME spec declares that a part with no Content-Type defaults to "text/plain" (see :class:`Part<cherrypy._cpreqbody.Part>`).
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jul 22 03:35:33 2015 | http://epydoc.sourceforge.net |