1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #25576 -- Added IOBase methods required by TextIOWrapper to HttpResponse.

This commit is contained in:
Jon Dufresne
2015-10-20 14:23:58 -07:00
committed by Tim Graham
parent 1745aa000a
commit 05248a1009
4 changed files with 34 additions and 0 deletions

View File

@@ -174,6 +174,11 @@ Requests and Responses
* Added ``request.user`` to the debug view.
* Added :class:`~django.http.HttpResponse` methods
:meth:`~django.http.HttpResponse.readable()` and
:meth:`~django.http.HttpResponse.seekable()` to make an instance a
stream-like object and allow wrapping it with :py:class:`io.TextIOWrapper`.
Serialization
^^^^^^^^^^^^^