DefaultCookieJar class Null safety

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

domainCookies Map<String, Map<String, Map<String, SerializableCookie>>>
read-only
hashCode int
The hash code for this object.
read-onlyinherited
hostCookies Map<String, Map<String, Map<String, SerializableCookie>>>
read-only
ignoreExpires bool
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

delete(Uri uri, [bool withDomainSharedCookie = false]) Future<void>
Delete cookies for specified uri. This API will delete all cookies for the uri.host, it will ignored the uri.path.
override
deleteAll() Future<void>
Delete all cookies in RAM
override
loadForRequest(Uri uri) Future<List<Cookie>>
Load the cookies for specified uri.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
saveFromResponse(Uri uri, List<Cookie> cookies) Future<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