This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 00fe652  add prefer: return=minimal documentation (#157)
00fe652 is described below

commit 00fe652805a9837187fcb2d845a7169cd7ed01f5
Author: garren smith <garren.sm...@gmail.com>
AuthorDate: Wed Aug 9 15:23:59 2017 +0200

    add prefer: return=minimal documentation (#157)
    
    This is for https://github.com/apache/couchdb/pull/605
---
 src/config/http.rst | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/src/config/http.rst b/src/config/http.rst
index 6817317..2076b2f 100644
--- a/src/config/http.rst
+++ b/src/config/http.rst
@@ -241,6 +241,22 @@ HTTP Server Options
            request bodies instead of document sizes. After the upgrade, it is
            advisable to review the usage of these configuration settings.
 
+.. config:section:: chttpd :: HTTP Server Options
+
+    .. config:option:: prefer_minimal :: Sends minimal set of headers
+
+        If a request has the header `"Prefer": "return=minimal"`, CouchDB
+        will only send the headers that are listed for the `prefer_minimal`
+        configuration.::
+
+            [chttpd]
+            prefer_minimal = Cache-Control, Content-Length, Content-Range, 
Content-Type, ETag, Server, Transfer-Encoding, Vary
+
+        .. warning::
+            Removing the Server header from the settings will mean that
+            the CouchDB server header is replaced with the
+            Mochiweb server header.
+
 .. _config/ssl:
 
 Secure Socket Level Options

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

Reply via email to