http.CookieOptions
The options for CookieJar:set.
Fields
| Name | Type | Description |
|---|---|---|
url? | string | URL | The URL the cookie is set for, domain and path are taken from it when not given. |
domain? | string | The domain, the cookie is also sent to its subdomains. Required if url is not given. |
path? | string | The path, defaults to the directory of url or "/". |
expires? | integer | The Unix timestamp (seconds) the cookie expires at. |
max_age? | integer | The lifetime in seconds, takes precedence over expires. |
secure? | boolean | Only send the cookie over https://. |
http_only? | boolean | The HttpOnly attribute. |
same_site? | "strict" | "lax" | "none" | The SameSite attribute. |