Skip to content

Move Cookie handling out of HttpClient so we do not cross pollinate requests #1966

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

Conversation

kendallb
Copy link
Contributor

@kendallb kendallb commented Nov 8, 2022

Description

Implements the following:

  • Move handling of Cookies out of HttpClient and into RestSharp, so they will not cross pollinate requests.
  • Make the CookieContainer a property on the request, not the client.
  • Add tests for cookie handling.

Purpose

This pull request is a:

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

although the breakage is only against stuff that was not released other than in alpha anyway (making Options internal again).

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Sorry, something went wrong.

@kendallb
Copy link
Contributor Author

kendallb commented Nov 8, 2022

Dang I was not updated to dev. Will rebase it all and fix it up now.

@kendallb kendallb force-pushed the feature/move-cookies-out-of-httpclient branch from d56bfd4 to 3cd8331 Compare November 8, 2022 16:49
…y will not cross pollinate requests.

Make the CookieContainer a property on the request, not the client.
Add tests for cookie handling.
@kendallb kendallb force-pushed the feature/move-cookies-out-of-httpclient branch from 3cd8331 to 37e7d75 Compare November 8, 2022 17:16
@alexeyzimarev alexeyzimarev merged commit 2621b17 into restsharp:dev Nov 9, 2022
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

2 participants