Home | Trees | Indices | Help |
|
---|
|
object --+ | Response
Response object, used to return stuff via WSGI protocol.
The Response object is a container fr the details of the response. It contains three significant members:
- status: The status code (as a string, with code and reason phrase) for the reponse.
- headers: The headers to return about the request.
- body: The body of the page to return.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Class Variables | |
VALID_STATUS_RE = re.compile(r'[12345][0-9][0-9]')
|
|
status = property(_get_status, _set_status, doc= """The status
|
Properties | |
Inherited from |
Method Details |
Create a new Response object. The body defaults to being empty, the status defaults to "200 OK", and the content_type defaults to 'text/plain'.
|
Get the list of headers, encoded suitably for HTTP. This converts the unicode headers to byte strings, suitable for passing through HTTP. |
Set the value of a header which should only occur once. If any values for the header already exist in the list of headers, they are first removed. The comparison of header names is performed case insensitively. |
str(x)
|
Class Variable Details |
status
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Feb 3 09:26:11 2009 | http://epydoc.sourceforge.net |