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
-
domainCookies
→ Map<
String, Map< String, Map< >String, SerializableCookie> > -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
hostCookies
→ Map<
String, Map< String, Map< >String, SerializableCookie> > -
no setter
- ignoreExpires → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
delete(
Uri uri, [ ]) → Future< void> -
Delete cookies for specified
uri
. This API will delete all cookies for theuri.host
, it will ignored theuri.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 nonexistent 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