Replies: 1 comment 2 replies
-
Okay, so this still needs to be in the "discussion" category. I'm not necessarily sold on us treating this as an issue. Also, it'd be helpful to start from a more clear specific motivation. Give an example use-case that you're trying to resolve that you're currently unable to do. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checklist
communitydiscussions chat and feedback is positive.Is your feature related to a problem? Please describe.
Provide a user API for retrieving httpx.Cookie object parameters from request cookies such as cookie expiry date, cookie path, secure flag, etc.
Right now it is only possible to get a cookie's value via
httpx.Cookies.get()
. No other cookie parameters are exposed via a user accessible API.Describe alternatives you considered
The only way to get these parameters is to manually pull them out of the cookie jar by accessing the internal variables. This should be discouraged as internal implementation details are not guaranteed to be stable after each new version. Also due to the way objects in the cookie jar are structured you need to know the cookie path ahead of time to use as a dict key in order to access the httpx.Cookie object within.
e.g.
Additional context
See discussions/1497
Beta Was this translation helpful? Give feedback.
All reactions