Adds a cookie to this jar or alters the value of an existing cookie.
Adds a cookie to this jar or alters the value of an existing cookie.
a new cookie jar containing the merged cookies.
Removes a cookie from this jar, returning a new CookieJar.
Removes a cookie from this jar, returning a new CookieJar.
a new cookie jar containing the reduced cookies.
Determines whether there is a cookie that matches a certain name/domain/path.
Determines whether there is a cookie that matches a certain name/domain/path. This is a shortcut for
find(_ matches c).isDefined
Gets a filtered collection of cookies from this jar that match a certain predicate.
Gets a filtered collection of cookies from this jar that match a certain predicate.
Gets a filtered collection of cookies from this jar that match a certain predicate.
Gets a filtered collection of cookies from this jar that do not match a certain predicate.
Gets a filtered collection of cookies from this jar that do not match a certain predicate.
Gets a filtered collection of cookies from this jar that do not match a certain predicate.
Gets the first cookie from this jar that matches a certain predicate.
Gets the first cookie from this jar that matches a certain predicate.
Gets the first cookie from this jar that has a given name/domain/path.
Gets the first cookie from this jar that has a given name.
Gets the first cookie from this jar that has a given name. The domain and path matching terms are ignored in this case.
The number of cookies in this jar.
The number of cookies in this jar.
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
The number of cookies in this jar.
The number of cookies in this jar.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
Gets the remaining cookies from this jar after removing all expired cookies.
Gets the remaining cookies from this jar after removing all expired cookies.
the datum against which the expiration of cookies is tested
Gets the remaining cookies from this jar after removing all session cookies.
(Since version 2.10.0) use fold instead
CookieJar holds cookies as key/value pairs. It also holds a list of deleted keys to allow the server to mark cookies for deletion; this is used when jars are merged together.
Cookie jars are immutable. They are created either programmatically or by processin an HTTP response. In the latter case, once a request has completed, a new instance is created based on the prior cookies and any new ones that were set by the server.