__init__(self,
status,
headers,
content,
anymethod=False)
(Constructor)
| source code
|
- Parameters:
status (str) - is the HTTP status returned to the browser (ex: "200
OK")
headers (list) - is a list of (header, value) pairs being delivered
as HTTP headers
content (basestring) - contains the data to be delivered to the client. It is either a
string or some kind of iterable yielding strings.
anymethod (boolean) - determines whether any request method should be answered with
this response instead of a 501
|