Skip to content

Update CookieJar with intermediate request/responses using Network.HTTP.Client.HistoriedResponse. #1104

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

Merged
merged 4 commits into from
Feb 2, 2019

Conversation

mdunnio
Copy link
Contributor

@mdunnio mdunnio commented Jan 8, 2019

Currently, any cookies that are set prior to a redirect won't be available in the CookieJar in ClientEnv. Using HistoriedResponse allows the updating of the CookieJar with all the requests/responses.

@alpmestan
Copy link
Contributor

alpmestan commented Jan 11, 2019

LGTM, but it'd be great to add a test that exercises the "with cookie jar" code path to make sure 1/ it works as expected and 2/ it doesn't break in the future. Do you feel like adding this?

Thanks!

@mdunnio
Copy link
Contributor Author

mdunnio commented Jan 11, 2019

I should be able to add a test case. Let me take a look.

@mdunnio
Copy link
Contributor Author

mdunnio commented Jan 25, 2019

Added a test case.

Copy link
Contributor

@alpmestan alpmestan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you!

@alpmestan
Copy link
Contributor

alpmestan commented Jan 25, 2019

@phadej Any objection to merging this?

@phadej phadej merged commit 28ac8c0 into haskell-servant:master Feb 2, 2019
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.

3 participants