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

Added into_owned() to Cookie. #1999

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mstyura
Copy link

@mstyura mstyura commented Oct 16, 2023

There are some scenarios when it might be desirable to make cookies outlive response object. Currently there is no (or I failed to find out) easy way to have a copy of cookes, while underlying cookie library has into_owned to make cookie outlive response.
As an alternative solution (or maybe additional) it seems like cookies() method could be part of HeaderMap, which is already easily to have an owned copy.
Please let me know if anything like this could be landed into library, thanks a lot in advance.

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.

None yet

1 participant