summaryrefslogtreecommitdiff
path: root/docs/ref/request-response.txt
diff options
context:
space:
mode:
authorNick Pope <nick.pope@flightdataservices.com>2020-04-30 10:30:11 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-05-13 09:14:04 +0200
commita9337b4add01e50ed8ff8d3ef44099a08cba475c (patch)
treedaa0c3bbf5743cb1a50502841c12b517ea11353f /docs/ref/request-response.txt
parentf9d13a1b5a637434556f88b0703087bf98ce3211 (diff)
Used :pep: role in various docs.
Diffstat (limited to 'docs/ref/request-response.txt')
-rw-r--r--docs/ref/request-response.txt7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt
index ad57038e5a..17c0f30335 100644
--- a/docs/ref/request-response.txt
+++ b/docs/ref/request-response.txt
@@ -1161,8 +1161,9 @@ Attributes
.. class:: FileResponse(open_file, as_attachment=False, filename='', **kwargs)
:class:`FileResponse` is a subclass of :class:`StreamingHttpResponse`
- optimized for binary files. It uses `wsgi.file_wrapper`_ if provided by the
- wsgi server, otherwise it streams the file out in small chunks.
+ optimized for binary files. It uses :pep:`wsgi.file_wrapper
+ <3333#optional-platform-specific-file-handling>` if provided by the wsgi
+ server, otherwise it streams the file out in small chunks.
If ``as_attachment=True``, the ``Content-Disposition`` header is set to
``attachment``, which asks the browser to offer the file to the user as a
@@ -1178,8 +1179,6 @@ Attributes
The ``Content-Length`` and ``Content-Type`` headers are automatically set
when they can be guessed from contents of ``open_file``.
-.. _wsgi.file_wrapper: https://www.python.org/dev/peps/pep-3333/#optional-platform-specific-file-handling
-
``FileResponse`` accepts any file-like object with binary content, for example
a file open in binary mode like so::