class documentation

class LocalResponse(BaseResponse): (source)

View In Hierarchy

A thread-local subclass of :class:`BaseResponse` with a different set of attributes for each thread. There is usually only one global instance of this class (:data:`response`). Its attributes are used to build the HTTP response at the end of the request/response cycle.

Class Variable body Undocumented
Class Variable _cookies Undocumented
Class Variable _headers Undocumented
Class Variable _status_code Undocumented
Class Variable _status_line Undocumented

Inherited from BaseResponse:

Method __contains__ Undocumented
Method __delitem__ Undocumented
Method __getitem__ Undocumented
Method __init__ Undocumented
Method __iter__ Undocumented
Method __repr__ Undocumented
Method __setitem__ Undocumented
Method add_header Add an additional response header, not removing duplicates.
Method close Undocumented
Method copy Returns a copy of self.
Method delete_cookie Delete a cookie. Be sure to use the same `domain` and `path` settings as used to create the cookie.
Method get_header Return the value of a previously defined header. If there is no header with that name, return a default value.
Method iter_headers Yield (header, value) tuples, skipping headers that are not allowed with the current response status code.
Method set_cookie Create a new cookie or replace an old one. If the `secret` parameter is set, create a `Signed Cookie` (described below).
Method set_header Create a new response header, replacing any previously defined headers with the same name.
Class Variable bad_headers Undocumented
Class Variable content_length Undocumented
Class Variable content_type Undocumented
Class Variable default_content_type Undocumented
Class Variable default_status Undocumented
Class Variable expires Undocumented
Instance Variable status Undocumented
Property charset Return the charset specified in the content-type header (default: utf8).
Property headerlist WSGI conform list of (header, value) tuples.
Property headers An instance of :class:`HeaderDict`, a case-insensitive dict-like view on the response headers.
Property status_code The HTTP status code as an integer (e.g. 404).
Property status_line The HTTP status line as a string (e.g. ``404 Not Found``).
Method _get_status Undocumented
Method _set_status Undocumented

Undocumented

_cookies = (source)

Undocumented

_headers = (source)

Undocumented

_status_code = (source)

Undocumented

_status_line = (source)

Undocumented