tmenier / Flurl

Fluent URL builder and testable HTTP client for .NET
https://flurl.dev
MIT License
4.23k stars 387 forks source link

Support cookie restore in CookieSession #775

Open pinkplus opened 1 year ago

pinkplus commented 1 year ago

758 has added cookie restore support for CookieJar. However, it's not possible to use it with CookieSession.

CookieJar restoration is implemented with a static method LoadFrom, which always creates a new CookieJar instance. This doesn't work well with CookieSession, which initializes its own CookieJar instance and can't be replaced.

Is it possible to support cookie restoration in CookieSession as well?