class TemplateResponse(SimpleTemplateResponse):
Undocumented
Method | __init__ |
Undocumented |
Class Variable | rendering_attrs |
Undocumented |
Instance Variable | _request |
Undocumented |
Inherited from SimpleTemplateResponse
:
Method | add_post_render_callback |
Add a new post-rendering callback. |
Method | render |
Render (thereby finalizing) the content of the response. |
Method | resolve_context |
Undocumented |
Method | resolve_template |
Accept a template object, path-to-template, or list of paths. |
Instance Variable | context_data |
Undocumented |
Instance Variable | template_name |
Undocumented |
Method | __getstate__ |
Raise an exception if trying to pickle an unrendered response. Pickle only rendered data, not the data used to construct the response. |
Method | __iter__ |
Undocumented |
Method | content.setter |
Set the content for the response. |
Instance Variable | _is_rendered |
Undocumented |
Instance Variable | _post_render_callbacks |
Undocumented |
Instance Variable | using |
Undocumented |
Property | content |
Undocumented |
Property | is_rendered |
Undocumented |
Property | rendered_content |
Return the freshly rendered content for the template and context described by the TemplateResponse. |
Inherited from HttpResponse
(via SimpleTemplateResponse
):
Method | getvalue |
Undocumented |
Method | tell |
Undocumented |
Method | writable |
Undocumented |
Method | write |
Undocumented |
Method | writelines |
Undocumented |
Class Variable | streaming |
Undocumented |
Method | __repr__ |
Undocumented |
Method | serialize |
Full HTTP message, including headers, as a bytestring. |
Instance Variable | _container |
Undocumented |
Inherited from HttpResponseBase
(via SimpleTemplateResponse
, HttpResponse
):
Method | __delitem__ |
Undocumented |
Method | __getitem__ |
Undocumented |
Method | __setitem__ |
Undocumented |
Method | charset.setter |
Undocumented |
Method | close |
Undocumented |
Method | delete_cookie |
Undocumented |
Method | flush |
Undocumented |
Method | get |
Undocumented |
Method | has_header |
Case-insensitive check for a header. |
Method | items |
Undocumented |
Method | make_bytes |
Turn a value into a bytestring encoded in the output charset. |
Method | readable |
Undocumented |
Method | reason_phrase.setter |
Undocumented |
Method | seekable |
Undocumented |
Method | serialize_headers |
HTTP headers as a bytestring. |
Method | set_cookie |
Set a cookie. |
Method | set_signed_cookie |
Undocumented |
Method | setdefault |
Set a header unless it has already been set. |
Instance Variable | _charset |
Undocumented |
Instance Variable | _handler_class |
Undocumented |
Instance Variable | _reason_phrase |
Undocumented |
Instance Variable | _resource_closers |
Undocumented |
Instance Variable | closed |
Undocumented |
Instance Variable | cookies |
Undocumented |
Instance Variable | headers |
Undocumented |
Instance Variable | status_code |
Undocumented |
Property | _content_type_for_repr |
Undocumented |
Property | charset |
Undocumented |
Property | reason_phrase |
Undocumented |