-
Notifications
You must be signed in to change notification settings - Fork 140
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
Add treq.cookies
helper module
#385
Conversation
And fix a CookieAgent failure. Fixes #384.
If we're going to ditch requests.cookies we need to offer *something* less raw than a bare CookieJar.
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 update.
It looks good. Only minor comments.
Happy to see more stdlib usage
src/treq/cookies.py
Outdated
) | ||
|
||
|
||
def raid( |
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.
minor comment
I am not familiar with other cookie API ... maybe this naming makes sense...maybe this is a fun name... I don't know.
Maybe call it search ? ... to be dull and boring
I was expecting to find this functionality in stdlib
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.
Ah, yeah, it is perhaps too cute: https://en.wiktionary.org/wiki/caught_raiding_the_cookie_jar
@adiroiban Thank you for the swift review! I renamed |
A bunch of cookie-related stuff, incrementally stepping towards addressing #325:
scoped_cookie()
helper for creatingCookie
objects.search()
function for searching a cookiejar.CookieAgent
MyPy failure.treq.response._Response
(including itscookie()
method).Fixes #384.