class
CookieMap
class CookieMap
A Map-like collection of cookies.
Iterable, so it works with for...of loops.
Returns the default iterator for the CookieMap. Used by for...of loops to iterate over all entries.
@returnsAn iterator for the entries in the map
- @param name
The name of the cookie to delete
@param optionsThe options for the cookie to delete
name: string,): void;Removes a cookie from the map.
@param nameThe name of the cookie to delete
@param optionsThe options for the cookie to delete
Returns an iterator of [name, value] pairs for every cookie in the map.
@returnsAn iterator for the entries in the map
- @param name
The name of the cookie to retrieve
@returnsThe cookie value as a string, or null if the cookie doesn't exist
- @param name
The name of the cookie to check
@returnstrue if the cookie exists, false otherwise
Returns an iterator of all cookie names in the map.
@returnsAn iterator for the cookie names
- @param name
The name of the cookie
@param valueThe value of the cookie
@param optionsOptional cookie attributes
@param optionsCookie options including name and value
Converts the cookie map to a serializable format.
@returnsAn object mapping cookie names to values
Returns the
Set-Cookieheader values that apply the changes made to this map.@returnsAn array of
Set-Cookieheader valuesReturns an iterator of all cookie values in the map.
@returnsAn iterator for the cookie values