module documentation

The Request class is used as a wrapper around the standard request object. The wrapped request then offers a richer API, in particular : - content automatically parsed according to `Content-Type` header, and available as `request.data` - full support of PUT method, including support for file uploads - form overloading of HTTP method, content type and content

Class Empty Placeholder for unset attributes. Cannot use `None`, as that may be a valid value.
Class ForcedAuthentication This authentication class is used if the test client or request factory forcibly authenticated the request.
Class override_method A context manager that temporarily overrides the method on a request, additionally setting the `view.request` attribute.
Class Request Wrapper allowing to enhance a standard `HttpRequest` instance.
Exception WrappedAttributeError Undocumented
Function clone_request Internal helper method to clone a request, replacing with a different HTTP method. Used for checking permissions against other methods.
Function is_form_media_type Return True if the media type is a valid form media type.
Function wrap_attributeerrors Used to re-raise AttributeErrors caught during authentication, preventing these errors from otherwise being handled by the attribute access protocol.
Function _hasattr Undocumented
def clone_request(request, method): (source)

Internal helper method to clone a request, replacing with a different HTTP method. Used for checking permissions against other methods.

def is_form_media_type(media_type): (source)

Return True if the media type is a valid form media type.

@contextmanager
def wrap_attributeerrors(): (source)

Used to re-raise AttributeErrors caught during authentication, preventing these errors from otherwise being handled by the attribute access protocol.

def _hasattr(obj, name): (source)

Undocumented