Skip to content
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

feat(response): Add get_header method #518

Closed
wants to merge 1 commit into from
Closed

feat(response): Add get_header method #518

wants to merge 1 commit into from

Conversation

lwcolton
Copy link
Contributor

Previously there was no way to check if a header had been set on
a response, without accessing _headers which doesn't feel clean.
This commit adds a get_header method on the response object for
checking if a header is set.

Previously there was no way to check if a header had been set on
a response, without accessing _headers which doesn't feel clean.
This commit adds a get_header method on the response object for
checking if a header is set.
@jmvrbanac
Copy link
Member

👍 LGTM

argument of :py:meth:`set_header`.

Returns:
The raw value of the header if it is set, or ``None``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefix with str:

@kgriffs
Copy link
Member

kgriffs commented Jun 23, 2015

@lwcolton Just a few nits. Could you also rebase on the latest master? Thanks!

@kgriffs
Copy link
Member

kgriffs commented Jul 2, 2015

@lwcolton Just following up to see if you had a chance to review my comments?

@kgriffs
Copy link
Member

kgriffs commented Jul 15, 2015

Rebased in #566

@kgriffs kgriffs closed this Jul 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants