Home | Trees | Indices | Help |
---|
|
object --+ | Response
Represents a WSGI response
|
|||
RequestClass The default request implementation |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
|
|
|||
_cache_control_obj = None hash(x) |
|||
_safe_methods =
|
|||
default_charset =
|
|||
default_conditional_response = False
|
|||
default_content_type =
|
|||
status_code = <Deprecated attribute status_code: <property obj
|
|||
unicode_errors =
|
|
|||
accept_ranges Gets and sets and deletes the Accept-Ranges header. |
|||
age Gets and sets and deletes the Age header. |
|||
allow Gets and sets and deletes the Allow header. |
|||
app_iter Returns the app_iter of the response. |
|||
body The body of the response, as a ``str``. |
|||
body_file A file-like object that can be used to write to the body. |
|||
cache_control Get/set/modify the Cache-Control header (section `14.9 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9>`_) |
|||
cache_expires | |||
charset Get/set the charset (in the Content-Type) |
|||
content_disposition Gets and sets and deletes the Content-Disposition header. |
|||
content_encoding Gets and sets and deletes the Content-Encoding header. |
|||
content_language Gets and sets and deletes the Content-Language header. |
|||
content_length Gets and sets and deletes the Content-Length header. |
|||
content_location Gets and sets and deletes the Content-Location header. |
|||
content_md5 Gets and sets and deletes the Content-MD5 header. |
|||
content_range Gets and sets and deletes the Content-Range header. |
|||
content_type Get/set the Content-Type header (or None), *without* the charset or any parameters. |
|||
content_type_params A dictionary of all the parameters in the content type. |
|||
date Gets and sets and deletes the Date header. |
|||
environ Get/set the request environ associated with this response, if any. |
|||
etag Gets and sets and deletes the ETag header. |
|||
expires Gets and sets and deletes the Expires header. |
|||
headerlist The list of response headers |
|||
headers The headers in a dictionary-like object |
|||
last_modified Gets and sets and deletes the Last-Modified header. |
|||
location Gets and sets and deletes the Location header. |
|||
pragma Gets and sets and deletes the Pragma header. |
|||
request Return the request associated with this response if any. |
|||
retry_after Gets and sets and deletes the Retry-After header. |
|||
server Gets and sets and deletes the Server header. |
|||
status The status string |
|||
status_int The status as an integer |
|||
ubody Alias for unicode_body |
|||
unicode_body Get/set the unicode value of the body (using the charset of the Content-Type) |
|||
vary Gets and sets and deletes the Vary header. |
|||
www_authenticate Gets and sets and deletes the WWW-Authenticate header. |
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
repr(x)
|
str(x)
|
Returns the app_iter of the response. If body was set, this will create an app_iter from that body (a single-item list) |
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. |
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). |
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) |
Like the normal __call__ interface, but checks conditional headers: * If-Modified-Since (304 Not Modified; only on GET, HEAD) * If-None-Match (304 Not Modified; only on GET, HEAD) * Range (406 Partial Content; only on GET, HEAD) |
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. |
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`` |
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 :class:`webob.Response` object, then the other object will be modified in-place. |
|
status_code
|
|
accept_rangesGets and sets and deletes the Accept-Ranges header. For more information on Accept-Ranges see `section 14.5 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.5>`_.
|
ageGets and sets and deletes the Age header. For more information on Age see `section 14.6 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.6>`_. Converts it as a int.
|
allowGets and sets and deletes the Allow header. For more information on Allow see `section 14.7 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.7>`_. Converts it as a list.
|
app_iterReturns the app_iter of the response. If body was set, this will create an app_iter from that body (a single-item list)
|
bodyThe body of the response, as a ``str``. This will read in the entire app_iter if necessary.
|
body_fileA 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.
|
cache_controlGet/set/modify the Cache-Control header (section `14.9 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9>`_)
|
cache_expires
|
charsetGet/set the charset (in the Content-Type)
|
content_dispositionGets and sets and deletes the Content-Disposition header. For more information on Content-Disposition see `section 19.5.1 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1>`_.
|
content_encodingGets and sets and deletes the Content-Encoding header. For more information on Content-Encoding see `section 14.11 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11>`_.
|
content_languageGets and sets and deletes the Content-Language header. For more information on Content-Language see `section 14.12 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.12>`_. Converts it as a list.
|
content_lengthGets and sets and deletes the Content-Length header. For more information on Content-Length see `section 14.17 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17>`_. Converts it as a int.
|
content_locationGets and sets and deletes the Content-Location header. For more information on Content-Location see `section 14.14 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.14>`_.
|
content_md5Gets and sets and deletes the Content-MD5 header. For more information on Content-MD5 see `section 14.14 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.14>`_.
|
content_rangeGets and sets and deletes the Content-Range header. For more information on Content-Range see `section 14.16 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.16>`_. Converts it as a ContentRange object.
|
content_typeGet/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.
|
content_type_paramsA 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)
|
dateGets and sets and deletes the Date header. For more information on Date see `section 14.18 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.18>`_. Converts it as a HTTP date.
|
environGet/set the request environ associated with this response, if any.
|
etagGets and sets and deletes the ETag header. For more information on ETag see `section 14.19 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.19>`_. Converts it as a Entity tag.
|
expiresGets and sets and deletes the Expires header. For more information on Expires see `section 14.21 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.21>`_. Converts it as a HTTP date.
|
headerlistThe list of response headers
|
headersThe headers in a dictionary-like object
|
last_modifiedGets and sets and deletes the Last-Modified header. For more information on Last-Modified see `section 14.29 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.29>`_. Converts it as a HTTP date.
|
locationGets and sets and deletes the Location header. For more information on Location see `section 14.30 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30>`_.
|
pragmaGets and sets and deletes the Pragma header. For more information on Pragma see `section 14.32 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.32>`_.
|
requestReturn the request associated with this response if any.
|
retry_afterGets and sets and deletes the Retry-After header. For more information on Retry-After see `section 14.37 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.37>`_. Converts it as a HTTP date or delta seconds.
|
serverGets and sets and deletes the Server header. For more information on Server see `section 14.38 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.38>`_.
|
statusThe status string
|
status_intThe status as an integer
|
ubodyAlias for unicode_body
|
unicode_bodyGet/set the unicode value of the body (using the charset of the Content-Type)
|
varyGets and sets and deletes the Vary header. For more information on Vary see `section 14.44 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.44>`_. Converts it as a list.
|
www_authenticateGets and sets and deletes the WWW-Authenticate header. For more information on WWW-Authenticate see `section 14.47 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.47>`_. Converts it as a <function parse_auth at 0x1027929b0> and <function serialize_auth at 0x102792a28>.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Mar 22 22:35:31 2011 | http://epydoc.sourceforge.net |