dreamworkAPI
Ctrl K
GitHub
typeDocs / http / CookieOptions

http.CookieOptions

typesource

The options for CookieJar:set.

Fields

NameTypeDescription
url?string | URLThe URL the cookie is set for, domain and path are taken from it when not given.
domain?stringThe domain, the cookie is also sent to its subdomains. Required if url is not given.
path?stringThe path, defaults to the directory of url or "/".
expires?integerThe Unix timestamp (seconds) the cookie expires at.
max_age?integerThe lifetime in seconds, takes precedence over expires.
secure?booleanOnly send the cookie over https://.
http_only?booleanThe HttpOnly attribute.
same_site?"strict" | "lax" | "none"The SameSite attribute.
Generated from the dreamwork meta branch.