New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MRG+1] Added documentation about accessing header values #2327
Conversation
Current coverage is 83.31% (diff: 100%)@@ master #2327 diff @@
==========================================
Files 161 161
Lines 8721 8721
Methods 0 0
Messages 0 0
Branches 1284 1284
==========================================
Hits 7266 7266
Misses 1204 1204
Partials 251 251
|
@@ -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 from the :class:`headers` object by using :meth:`get` to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think "from the :class:headers
object by" is necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup, that's not resolving to a proper link -- no need to use special markup here, just headers is good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the heads up. I committed a fix just now.
Thanks @bopace ! I nitpicked a little. |
Thanks! How does that change look? |
Looks good, thanks @bopace ! |
Adds documentation to resolve #2320