diff options
| author | Curtis Maloney <curtis@tinbrain.net> | 2015-08-07 15:51:39 +1000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-02-10 18:19:23 -0500 |
| commit | 6f1318734f0f3b6e62b782b0251a4e676e542e0b (patch) | |
| tree | b86024c484d214854b686233f77ac3a346db289f /docs/ref/request-response.txt | |
| parent | dca8b916ffa391964be26bbd62471d4c11b221fd (diff) | |
Fixed #26014 -- Added WSGIRequest content_type and content_params attributes.
Parsed the CONTENT_TYPE header once and recorded it on the request.
Diffstat (limited to 'docs/ref/request-response.txt')
| -rw-r--r-- | docs/ref/request-response.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index ce2a68fe44..acf195803b 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -84,6 +84,20 @@ All attributes should be considered read-only, unless stated otherwise. from ``GET`` or ``POST``) will use the new ``encoding`` value. Useful if you know the form data is not in the :setting:`DEFAULT_CHARSET` encoding. +.. attribute:: HttpRequest.content_type + + .. versionadded:: 1.10 + + A string representing the MIME type of the request, parsed from the + ``CONTENT_TYPE`` header. + +.. attribute:: HttpRequest.content_params + + .. versionadded:: 1.10 + + A dictionary of key/value parameters included in the ``CONTENT_TYPE`` + header. + .. attribute:: HttpRequest.GET A dictionary-like object containing all given HTTP GET parameters. See the |
