From 0352f71dbc0b4758ec4915a059976d9d3c49cbdf Mon Sep 17 00:00:00 2001 From: Maria Andersson Date: Mon, 24 Nov 2014 13:13:55 +0100 Subject: [PATCH 1/2] Add Transfer-Encoding to the list of HTTP Headers. --- src/api/basics.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/api/basics.rst b/src/api/basics.rst index 6a86f3cc..2c307ab8 100644 --- a/src/api/basics.rst +++ b/src/api/basics.rst @@ -233,6 +233,19 @@ below. original ETag head (therefore sending back 304 Not Modified more often). +- ``Transfer-Encoding`` + + If the response uses an encoding, then it is specified in this + header field. + + ``Transfer-Encoding: chunked`` means that the response is sent + in parts, a method known as `chunked transfer encoding`_. This + is used when CouchDB is unable to send all the data at the same time + (for example, the changes feed). + +.. _chunked transfer encoding: + https://en.wikipedia.org/wiki/Chunked_transfer_encoding + .. _json: JSON Basics From d4f41a0d5eaf171ff2297b9412187df6897f71e8 Mon Sep 17 00:00:00 2001 From: Maria Andersson Date: Mon, 24 Nov 2014 16:27:31 +0100 Subject: [PATCH 2/2] Changed the wording, added a link to changes feed. --- src/api/basics.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/basics.rst b/src/api/basics.rst index 2c307ab8..464b9994 100644 --- a/src/api/basics.rst +++ b/src/api/basics.rst @@ -238,10 +238,10 @@ below. If the response uses an encoding, then it is specified in this header field. - ``Transfer-Encoding: chunked`` means that the response is sent - in parts, a method known as `chunked transfer encoding`_. This - is used when CouchDB is unable to send all the data at the same time - (for example, the changes feed). + ``Transfer-Encoding: chunked`` means that the response is sent in + parts, a method known as `chunked transfer encoding`_. This is used + when CouchDB does not know beforehand the size of the data it will + send (for example, the :ref:`changes feed `). .. _chunked transfer encoding: https://en.wikipedia.org/wiki/Chunked_transfer_encoding