CookieJar class final

The cookies one request carried.

A browser sends every cookie for the origin in one header, so reading one means picking it out of a list. Parsing it once and handing back a map is what keeps that out of every extractor that needs a session.

Constructors

CookieJar(Map<String, String> values)
Wraps already-parsed values.
const
CookieJar.of(Request request)
Reads the cookie header of request.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
names → Iterable<String>
The names that were sent.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
values → Map<String, String>
The cookies, by name.
final

Methods

contains(String name) → bool
Whether name was sent.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited
operator [](String name) → String?
The cookie named name, or null.