tough-cookie.cookiejar.getsetcookiestrings.md
July 9, 2025 ยท View on GitHub
Home > tough-cookie > CookieJar > getSetCookieStrings
CookieJar.getSetCookieStrings() method
Returns an array of strings suitable for Set-Cookie headers. Accepts the same options as .getCookies().
Signature:
getSetCookieStrings(url: string, callback: Callback<string[] | undefined>): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
url |
string |
The domain to store the cookie with. |
|
callback |
Callback<string[] | undefined> |
A function to call after the |
Returns:
void