document combination of repeated response headers
authorrequiredfield <requiredfield256@gmail.com>
Fri, 20 Feb 2015 18:20:18 +0000 (12:20 -0600)
committerrequiredfield <requiredfield256@gmail.com>
Fri, 20 Feb 2015 18:20:18 +0000 (12:20 -0600)
docs/user/quickstart.rst

index 0878973fcd96006316bb84e3ff7394c9bcc55570..6fd3602e40ee360edb6f518b6452e13cb0090608 100644 (file)
@@ -347,6 +347,15 @@ So, we can access the headers using any capitalization we want::
     >>> r.headers.get('content-type')
     'application/json'
 
+It is also special in that the server could have sent the same header multiple
+times with different values, but requests combines them so they can be
+represented in the dictionary within a single mapping, as per
+`RFC 7230 <http://tools.ietf.org/html/rfc7230#section-3.2>`_:
+
+    > A recipient MAY combine multiple header fields with the same field name
+    > into one "field-name: field-value" pair, without changing the semantics
+    > of the message, by appending each subsequent field value to the combined
+    > field value in order, separated by a comma.
 
 Cookies
 -------