Skip to content

Commit

Permalink
Merge pull request #2327 from bopace/http-header-docs
Browse files Browse the repository at this point in the history
[MRG+1] Added documentation about accessing header values
  • Loading branch information
kmike committed Oct 20, 2016
2 parents 71c8278 + fd016ee commit 871eec9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/topics/request-response.rst
Expand Up @@ -507,7 +507,13 @@ Response objects

.. attribute:: Response.headers

A dictionary-like object which contains the response headers.
A dictionary-like object which contains the response headers. Values can
be accessed using :meth:`get` to return the first header value with the
specified name or :meth:`getlist` to return all header values with the
specified name. For example, this call will give you all cookies in the
headers::

response.headers.getlist('Set-Cookie')

.. attribute:: Response.body

Expand Down

0 comments on commit 871eec9

Please sign in to comment.