couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fli...@apache.org
Subject [couchdb-documentation] 01/02: multipart/mixed should be multipart/related
Date Tue, 28 Nov 2017 17:32:25 GMT
This is an automated email from the ASF dual-hosted git repository.

flimzy pushed a commit to branch putType
in repository https://gitbox.apache.org/repos/asf/couchdb-documentation.git

commit 87e196c2a98f51edca67bcd37e33bfb4751f7863
Author: Jonathan Hall <flimzy@flimzy.com>
AuthorDate: Tue Nov 28 18:23:48 2017 +0100

    multipart/mixed should be multipart/related
---
 src/api/document/common.rst  |  4 ++--
 src/replication/protocol.rst | 10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/api/document/common.rst b/src/api/document/common.rst
index 58c423f..3f381e0 100644
--- a/src/api/document/common.rst
+++ b/src/api/document/common.rst
@@ -72,7 +72,7 @@
     :param docid: Document ID
 
     :<header Accept: - :mimetype:`application/json`
-                     - :mimetype:`multipart/mixed`
+                     - :mimetype:`multipart/related`
                      - :mimetype:`text/plain`
     :<header If-None-Match: Double quoted document's revision token
 
@@ -105,7 +105,7 @@
       document revisions. Default is ``false``
 
     :>header Content-Type: - :mimetype:`application/json`
-                           - :mimetype:`multipart/mixed`
+                           - :mimetype:`multipart/related`
                            - :mimetype:`text/plain; charset=utf-8`
     :>header ETag: Double quoted document's revision token. Not available when
       retrieving conflicts-related information
diff --git a/src/replication/protocol.rst b/src/replication/protocol.rst
index 2dc3041..90cde13 100644
--- a/src/replication/protocol.rst
+++ b/src/replication/protocol.rst
@@ -1150,16 +1150,16 @@ with the following query parameters:
   may be changed in between this step and handling related events on the
   Changes Feed
 
-In the response Source SHOULD return :mimetype:`multipart/mixed` or respond
+In the response Source SHOULD return :mimetype:`multipart/related` or respond
 instead with :mimetype:`application/json` unless the :header:`Accept` header
-specifies a different mime type. The :mimetype:`multipart/mixed` content type
+specifies a different mime type. The :mimetype:`multipart/related` content type
 allows handling the response data as a stream, since there could be multiple
 documents (one per each Leaf Revision) plus several attachments. These
 attachments are mostly binary and JSON has no way to handle such data except as
 base64 encoded strings which are very ineffective for transfer and processing
 operations.
 
-With a :mimetype:`multipart/mixed` response the Replicator handles multiple
+With a :mimetype:`multipart/related` response the Replicator handles multiple
 Document Leaf Revisions and their attachments one by one as raw data without
 any additional encoding applied. There is also one agreement to make data
 processing more effective: the Document ALWAYS goes before its attachments, so
@@ -1171,7 +1171,7 @@ Documents-Attachments and may handle it as stream with lesser memory
footprint.
     .. code-block:: http
 
         GET /source/SpaghettiWithMeatballs?revs=true&open_revs=[%225-00ecbbc%22,%221-917fa23%22,%223-6bcedf1%22]&latest=true
HTTP/1.1
-        Accept: multipart/mixed
+        Accept: multipart/related
         Host: localhost:5984
         User-Agent: CouchDB
 
@@ -1180,7 +1180,7 @@ Documents-Attachments and may handle it as stream with lesser memory
footprint.
     .. code-block:: http
 
         HTTP/1.1 200 OK
-        Content-Type: multipart/mixed; boundary="7b1596fc4940bc1be725ad67f11ec1c4"
+        Content-Type: multipart/related; boundary="7b1596fc4940bc1be725ad67f11ec1c4"
         Date: Thu, 07 Nov 2013 15:10:16 GMT
         Server: CouchDB (Erlang OTP)
         Transfer-Encoding: chunked

-- 
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <commits@couchdb.apache.org>.

Mime
View raw message