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