The Response class is accessible via the webob module.
Retrieve the Location header of the response, or None if there is no header. If the header is not absolute and this response is associated with a request, make the header absolute.
For more information see section 14.30.
Returns the app_iter of the response.
If body was set, this will create an app_iter from that body (a single-item list)
Get/set the Content-Type header (or None), without the charset or any parameters.
If you include parameters (or ; at all) when setting the content_type, any existing parameters will be deleted; otherwise they will be preserved.
Returns a file-like object that can be used to write to the body. If you passed in a list app_iter, that app_iter will be modified by writes.
Set (add) a cookie for the response
Delete a cookie from the client. Note that path and domain must match how the cookie was originally set.
This sets the cookie to the empty string, and max_age=0 so that it should expire immediately.
Unset a cookie with the given name (remove it from the response). If there are multiple cookies (e.g., two cookies with the same name and different paths or domains), all such cookies will be deleted.
Set expiration on this request. This sets the response to expire in the given seconds, and any other attributes are used for cache_control (e.g., private=True, etc).
Encode the content with the given encoding (only gzip and identity are supported).
Generate an etag for the response object using an MD5 hash of the body (the body parameter, or self.body if not given)
Sets self.etag
Like the normal __call__ interface, but checks conditional headers:
Return a new app_iter built from the response app_iter, that serves up only the given start:stop range.
See the source for more information.