diff options
| author | Tim Park <51100862+timpark0807@users.noreply.github.com> | 2020-07-08 01:40:33 -0700 |
|---|---|---|
| committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2020-07-08 10:41:28 +0200 |
| commit | 3756a0509ae48d91070fb65921dbb2d2155c61d1 (patch) | |
| tree | d3affb53672ff1cc157c3a9cf1dc513c1d121229 | |
| parent | dad6973629aef058aa5d415a99c5014dd72e6468 (diff) | |
[3.1.x] Fixed #31739 -- Documented dependency between HttpRequest stream IO methods and body.
Backport of 060576b0abac460d72714e300aa709d1e7a87dd7 from master
| -rw-r--r-- | docs/ref/request-response.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index 8647436b97..3c63af5978 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -43,8 +43,10 @@ All attributes should be considered read-only, unless stated otherwise. XML payload etc. For processing conventional form data, use :attr:`HttpRequest.POST`. - You can also read from an ``HttpRequest`` using a file-like interface. See - :meth:`HttpRequest.read()`. + You can also read from an ``HttpRequest`` using a file-like interface with + :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 |
