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 - discrete cookie return #8

Merged
merged 2 commits into from
Nov 16, 2021
Merged

Conversation

rumblefrog
Copy link
Contributor

@rumblefrog rumblefrog commented Nov 15, 2021

This PR lands an internal time-based cookie jar.

The motivation behind this is that we cannot set a dedicated jar for each request. And recreating the client for each request seems wasteful.

Time-based cookie jar track cookies by time to fetch cookies since request time.

This is rather crude, but it works, and be later improved when better support lands in request: seanmonstar/reqwest#353

@rumblefrog
Copy link
Contributor Author

Unit tests pass, but it needs testing in the electron app.

@KishanBagaria
Copy link
Member

we can add a test for the use case where cookies werent set earlier with redirects

@rumblefrog
Copy link
Contributor Author

New test passes.

@KishanBagaria
Copy link
Member

lgtm, i'll test with all the platforms once

@KishanBagaria KishanBagaria merged commit 25f0107 into main Nov 16, 2021
@rumblefrog rumblefrog deleted the rf/discrete-cookie-ret branch May 9, 2022 23:33
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.

2 participants