cookie_jar library

A cookie manager for http requests, by which you can deal with the complex cookie policy and persist cookies easily.

A open source project authorized by https://flutterchina.club.

Classes

Representation of a cookie. For cookies received by the server as Cookie header values only name and value properties will be set. When building a cookie for the 'set-cookie' header in the server and when receiving cookies in the client as 'set-cookie' headers all fields can be used.
CookieJar
CookieJar is a cookie container and manager for HTTP requests.
DefaultCookieJar
DefaultCookieJar is a default cookie manager which implements the standard cookie policy declared in RFC.
FileStorage
Persist Cookies in the host file storage.
PersistCookieJar
PersistCookieJar is a cookie manager which implements the standard cookie policy declared in RFC. PersistCookieJar persists the cookies in files, if the application exit, the cookies always exist unless user explicitly called delete.
SerializableCookie
This class is a wrapper for Cookie class. Because the Cookie class doesn't support Json serialization, for the sake of persistence, we use this class instead of it.
Storage
The storage concept to persist cookies.
WebCookieJar
A WebCookieJar will do nothing to handle cookies since they are already handled by XHRs.