Optionalconfig: CookieJarOptionsReturn all non-expired cookies without updating access times.
Use this for inspection, serialization, or export. It does not fire
onChange. For request-time retrieval use get(url).
Remove all cookies, or only those matching a specific domain.
Optionaldomain: stringRemove all session cookies (persistentFlag = false). Call this when a logical "session end" occurs.
Remove a specific cookie by domain + path + name.
Fires onChange regardless of whether the cookie existed — callers
asking to delete a cookie is a meaningful event even when there is
nothing to remove.
Retrieve cookies matching the given URL, per RFC 6265 §5.4.
Updates lastAccessTime on every returned cookie (§5.4 step 3) and
fires onChange once if any match was retrieved. Non-retrieval calls
(no matches) do not mutate state and do not fire the callback.
The httpApi flag from construction determines whether httpOnly
cookies are included: true for the HTTP request pipeline (default),
false for non-HTTP APIs such as document.cookie.
Seed the jar from a pre-existing cookie array (e.g., loaded from adapter). Applies full set() semantics: eviction, dedup, size check.
Fires onChange exactly once after the bulk import finishes so a
persistence backend does not see N redundant writes for one load.
Store a cookie per RFC 6265 §5.3.
Fires onChange after the mutation completes.
RFC 6265 §5.3 — In-memory cookie storage with eviction.
Handles duplicate detection, expiry eviction, session cleanup, and per-domain / total cookie limits.
The jar is synchronous. Persistence (adapter.save) is fire-and-forget and managed by the plugin layer via the
onChangecallback.