mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Update documentation regarding response headers.
This commit is contained in:
@@ -66,5 +66,9 @@
|
||||
|
||||
- ``Response.raise_for_status()`` now returns the response object for good responses
|
||||
|
||||
- Use ``HTTPHeaderDict`` for response headers, allowing easier access to
|
||||
individual values when multiple response headers are sent using the same
|
||||
header name.
|
||||
|
||||
.. _#2002: https://github.com/kennethreitz/requests/issues/2002
|
||||
.. _#2631: https://github.com/kennethreitz/requests/issues/2631
|
||||
|
||||
@@ -418,6 +418,10 @@ represented in the dictionary within a single mapping, as per
|
||||
of the message, by appending each subsequent field value to the combined
|
||||
field value in order, separated by a comma.
|
||||
|
||||
If you do need to access each individual value sent with the same header, then
|
||||
you can use the ``multiget`` method to get a sequence of all the values returned
|
||||
for a particular header.
|
||||
|
||||
Cookies
|
||||
-------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user