class documentation

An HttpResponse that allows its data to be rendered into arbitrary media types.

Method __getstate__ Remove attributes from the response that shouldn't be cached.
Method __init__ Alters the init arguments slightly. For example, drop 'template_name', and instead use 'data'.
Instance Variable content_type Undocumented
Instance Variable data Undocumented
Instance Variable exception Undocumented
Instance Variable template_name Undocumented
Property rendered_content Undocumented
Property status_text Returns reason text corresponding to our HTTP response status code. Provided for convenience.
def __getstate__(self): (source)

Remove attributes from the response that shouldn't be cached.

def __init__(self, data=None, status=None, template_name=None, headers=None, exception=False, content_type=None): (source)

Alters the init arguments slightly. For example, drop 'template_name', and instead use 'data'. Setting 'renderer' and 'media_type' will typically be deferred, For example being set automatically by the `APIView`.

content_type = (source)

Undocumented

Undocumented

exception = (source)

Undocumented

template_name = (source)

Undocumented

@property
rendered_content = (source)

Undocumented

@property
status_text = (source)

Returns reason text corresponding to our HTTP response status code. Provided for convenience.