diff options
author | Steve Piercy <web@stevepiercy.com> | 2017-01-02 17:52:26 -0800 |
---|---|---|
committer | Steve Piercy <web@stevepiercy.com> | 2017-01-02 17:52:26 -0800 |
commit | 43fae808c016c35c08ded808829861167f8afa85 (patch) | |
tree | 46a7219842eb3cee32690561d381fc57805dc84a | |
parent | 268036fec598f9e653b91887200ff8d64d0eeeec (diff) | |
download | waitress-43fae808c016c35c08ded808829861167f8afa85.tar.gz |
Proper use of "file-like object" or ``filelike_object``, based on context
-rw-r--r-- | docs/filewrapper.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/filewrapper.rst b/docs/filewrapper.rst index 67057b9..a119594 100644 --- a/docs/filewrapper.rst +++ b/docs/filewrapper.rst @@ -42,8 +42,8 @@ in this degenerate case (as per the WSGI pec), and this block size will be used as the iteration chunk size. The ``block_size`` argument is optional; if it is not passed, a default value ``32768`` is used. -Waitress will set a ``Content-Length`` header on the behalf of an application -when a file wrapper with a sufficient ``filelike_object`` is used if the +Waitress will set a ``Content-Length`` header on behalf of an application +when a file wrapper with a sufficiently file-like object is used if the application hasn't already set one. The machinery which handles a file wrapper currently doesn't do anything @@ -51,4 +51,4 @@ particularly special using fancy system calls (it doesn't use ``sendfile`` for example); using it currently just prevents the system from needing to copy data to a temporary buffer in order to send it to the client. No copying of data is done when a WSGI app returns a file wrapper that wraps a -sufficient ``filelike_object``. It may do something fancier in the future. +sufficiently file-like object. It may do something fancier in the future. |