mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #17323 -- Renamed HttpRequest.raw_post_data to request.body. Thanks for the patch, dstufft
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17210 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
61f0aff811
commit
3f003a3c4b
9 changed files with 92 additions and 50 deletions
|
@ -30,6 +30,20 @@ Attributes
|
|||
|
||||
All attributes except ``session`` should be considered read-only.
|
||||
|
||||
.. attribute:: HttpRequest.body
|
||||
|
||||
.. versionchanged:: 1.4
|
||||
Before Django 1.4, ``HttpRequest.body`` was named ``HttpRequest.raw_post_data``.
|
||||
|
||||
The raw HTTP request body as a byte string. This is useful for processing
|
||||
data in different ways than conventional HTML forms: binary images,
|
||||
XML payload etc. For processing conventional form data, use ``HttpRequest.POST``.
|
||||
|
||||
.. versionadded:: 1.3
|
||||
|
||||
You can also read from an HttpRequest using a file-like interface. See
|
||||
:meth:`HttpRequest.read()`.
|
||||
|
||||
.. attribute:: HttpRequest.path
|
||||
|
||||
A string representing the full path to the requested page, not including
|
||||
|
@ -170,17 +184,6 @@ All attributes except ``session`` should be considered read-only.
|
|||
support activated. See the :doc:`session documentation
|
||||
</topics/http/sessions>` for full details.
|
||||
|
||||
.. attribute:: HttpRequest.raw_post_data
|
||||
|
||||
The raw HTTP POST data as a byte string. This is useful for processing
|
||||
data in different formats than of conventional HTML forms: binary images,
|
||||
XML payload etc. For processing form data use ``HttpRequest.POST``.
|
||||
|
||||
.. versionadded:: 1.3
|
||||
|
||||
You can also read from an HttpRequest using file-like interface. See
|
||||
:meth:`HttpRequest.read()`.
|
||||
|
||||
.. attribute:: HttpRequest.urlconf
|
||||
|
||||
Not defined by Django itself, but will be read if other code (e.g., a custom
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue