1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #24072 -- Added FileResponse for streaming binary files.

This commit is contained in:
Collin Anderson
2015-01-03 12:06:24 -05:00
committed by Tim Graham
parent 05f702b94c
commit 3d2cae0896
9 changed files with 88 additions and 9 deletions

View File

@@ -559,6 +559,8 @@ Requests and Responses
<django.http.HttpResponse.setdefault>` method allows setting a header unless
it has already been set.
* You can use the new :class:`~django.http.FileResponse` to stream files.
* The :func:`~django.views.decorators.http.condition` decorator for
conditional view processing now supports the ``If-unmodified-since`` header.