DefaultCookieJar class

DefaultCookieJar is a default cookie manager which implements the standard cookie policy declared in RFC. DefaultCookieJar saves the cookies in RAM, so if the application exit, all cookies will be cleared.

Implemented types
Implementers

Constructors

DefaultCookieJar({bool ignoreExpires = false})
ignoreExpires: save/load even cookies that have expired.

Properties

domains List<Map<String, Map<String, Map<String, SerializableCookie>>>>
no setter
hashCode int
The hash code for this object.
no setterinherited
ignoreExpires bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(Uri uri, [bool withDomainSharedCookie = false]) → void
Delete cookies for specified uri. This API will delete all cookies for the uri.host, it will ignored the uri.path.
deleteAll() → void
Delete all cookies in RAM
loadForRequest(Uri uri) List<Cookie>
Load the cookies for specified uri.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveFromResponse(Uri uri, List<Cookie> cookies) → void
Save the cookies for specified uri.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited