alias of Request
Returns the app_iter of the response.
If body was set, this will create an app_iter from that body (a single-item list)
Return a new app_iter built from the response app_iter, that serves up only the given start:stop range.
The body of the response, as a str. This will read in the entire app_iter if necessary.
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.
Get/set the charset (in the Content-Type)
Like the normal __call__ interface, but checks conditional headers:
Gets and sets the Content-Language header (HTTP spec section 14.12). Converts it using list.
Gets and sets the Content-Length header (HTTP spec section 14.17). Converts it using int.
Gets and sets the Content-Range header (HTTP spec section 14.16). Converts it using ContentRange object.
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.
A dictionary of all the parameters in the content type.
(This is not a view, set to change, modifications of the dict would not be applied otherwise)
Makes a copy of 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.
Encode the content with the given encoding (only gzip and identity are supported).
Get/set the request environ associated with this response, if any.
Reads a response from a file-like object (it must implement .read(size) and .readline()).
It will read up to the end of the response, not the end of the file.
This reads the response as represented by str(resp); it may not read every valid HTTP response properly. Responses must have a Content-Length
The list of response headers
The headers in a dictionary-like object
Gets and sets the Last-Modified header (HTTP spec section 14.29). Converts it using HTTP date.
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 If set_content_md5 is True sets self.content_md5 as well
Merge the cookies that were set on this response with the given resp object (which can be any WSGI application).
If the resp is a webob.Response object, then the other object will be modified in-place.
Return the request associated with this response if any.
Gets and sets the Retry-After header (HTTP spec section 14.37). Converts it using HTTP date or delta seconds.
Set (add) a cookie for the response
The status string
The status as an integer
Get/set the unicode value of the body (using the charset of the Content-Type)
Deprecated alias for .text
Deprecated alias for .text
Unset a cookie with the given name (remove it from the response).