tough-cookie.memorycookiestore.md
August 1, 2025 ยท View on GitHub
Home > tough-cookie > MemoryCookieStore
MemoryCookieStore class
An in-memory Store implementation for CookieJar. This is the default implementation used by CookieJar and supports both async and sync operations. Also supports serialization, getAllCookies, and removeAllCookies.
Signature:
declare class MemoryCookieStore extends Store
Extends: Store
Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Create a new MemoryCookieStore. |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
boolean |
This value is |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Retrieve a Cookie with the given | ||
|
Retrieve a Cookie with the given Callback takes an error and the resulting Cookie object. If no cookie is found then null MUST be passed instead (that is, not an error). | ||
|
Locates all Cookie values matching the given The resulting list is checked for applicability to the current request according to the RFC ( | ||
|
Locates all Cookie values matching the given The resulting list is checked for applicability to the current request according to the RFC ( | ||
|
Gets all the cookies in the store. | ||
|
Gets all the cookies in the store. | ||
|
Adds a new Cookie to the store. The implementation SHOULD replace any existing cookie with the same | ||
|
Adds a new Cookie to the store. The implementation SHOULD replace any existing cookie with the same | ||
|
Removes all cookies from the store. | ||
|
Removes all cookies from the store. | ||
|
Remove a cookie from the store (see notes on | ||
|
Remove a cookie from the store (see notes on | ||
|
Removes matching cookies from the store. The | ||
|
Removes matching cookies from the store. The | ||
|
Update an existing Cookie. The implementation MUST update the | ||
|
Update an existing Cookie. The implementation MUST update the |