-
Notifications
You must be signed in to change notification settings - Fork 321
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
Ported Cookies implementation from archive-split #380
Conversation
Tests are still missing as well as cleanup
Thanks for the comments. Have some time probably next week and will work on it. |
Something else I'm wondering about now is whether we could make it so parsing the incoming request cookies into the |
@nhellwig phew, that was a large review. I hadn't thought too much about cookie handling until now, but I feel we're really on track for something good here! The comments so far are part architectural, and part implementation specific. Perhaps best would be to start with the architectural ones:
When put together I'm unsure how well these ideas go. But I think they're the right direction for these APIs. The other comments are mostly implementation-specific. Thanks so much for putting the work in! I'm very excited about the direction this is headed! |
Co-Authored-By: Yoshua Wuyts <[email protected]>
Co-Authored-By: Yoshua Wuyts <[email protected]>
@nhellwig ohh, yeah this is getting pretty close now! The biggest thing that still seems to be missing is enabling the middleware by default. That would allow us to get rid of the |
Yeah that is worth looking at ^^. Just moved the |
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.
One final small set of changes, and I think we should be good to merge!
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.
Yessss, I think we're good to merge now. This is great; thanks @nhellwig!
This is a port of the cookies implementation from the time when the tide was split into multiple crates.
Changes are:
Tests have been ported as well. I was unsure how the strategy will be regarding Error handling so feel free to comment and suggest alternatives. So far I have tried to stay as close to the original version.
Cheers,
Niko