[3.0.x] Fixed #31739 -- Documented dependency between HttpRequest stream IO methods and body.
Backport of 060576b0abac460d72714e300aa709d1e7a87dd7 from master
This commit is contained in:
parent
b66588abe2
commit
502349ce77
@ -43,8 +43,10 @@ All attributes should be considered read-only, unless stated otherwise.
|
|||||||
XML payload etc. For processing conventional form data, use
|
XML payload etc. For processing conventional form data, use
|
||||||
:attr:`HttpRequest.POST`.
|
:attr:`HttpRequest.POST`.
|
||||||
|
|
||||||
You can also read from an ``HttpRequest`` using a file-like interface. See
|
You can also read from an ``HttpRequest`` using a file-like interface with
|
||||||
:meth:`HttpRequest.read()`.
|
:meth:`HttpRequest.read` or :meth:`HttpRequest.readline`. Accessing
|
||||||
|
the ``body`` attribute *after* reading the request with either of these I/O
|
||||||
|
stream methods will produce a ``RawPostDataException``.
|
||||||
|
|
||||||
.. attribute:: HttpRequest.path
|
.. attribute:: HttpRequest.path
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user