__init__(self,
body=u'',
status=200,
content_type=u'text/plain')
(Constructor)
| source code
|
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'.
- body: The value to store in the body member. Defaults to ''.
- status: The status to set for the response. May be specified as a
number, or as a string (optionally, with a reason phrase). Defaults
to 200.
- content_type: The content type to set for the response (as specified
for the set_content_type() method). Defaults to 'text/plain'.
- Overrides:
object.__init__
|