Classes
Methods
(async) delete(name) → {Promise.<void>}
Deletes a specific cookie by name.
Parameters:
| Name | Type | Description |
|---|---|---|
name | string | The name of the cookie to delete. |
Returns:
- Type:
- Promise.<void>
(async) deleteAll() → {Promise.<void>}
Deletes all cookies for the current page.
Returns:
- Type:
- Promise.<void>
(async) get(name) → {Promise.<(Object|undefined)>}
Gets a specific cookie by name.
Parameters:
| Name | Type | Description |
|---|---|---|
name | string | The name of the cookie. |
Returns:
The cookie object, or undefined if not found.
- Type:
- Promise.<(Object|undefined)>
(async) getAll() → {Promise.<Array>}
Gets all cookies for the current page.
Returns:
An array of cookie objects.
- Type:
- Promise.<Array>
(async) set(name, value, optionsopt) → {Promise.<void>}
Sets a cookie.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name | string | The name of the cookie. | |||||||||||||||||||||||||
value | string | The value of the cookie. | |||||||||||||||||||||||||
options | Object | <optional> | Optional cookie properties.Properties
|
Returns:
- Type:
- Promise.<void>