Details Type
Constructors
| Constructor |
Description
|
Full Usage:
Details(url, ?name, ?value, ?domain, ?path, ?secure, ?httpOnly, ?expirationDate, ?sameSite)
Parameters:
string
-
The URL to associate the cookie with. The promise will be rejected if the URL is invalid.
?name : string
-
The name of the cookie. Empty by default if omitted.
?value : string
-
The value of the cookie. Empty by default if omitted.
?domain : string
-
The domain of the cookie; this will be normalized with a preceding dot so that it's also valid for
subdomains. Empty by default if omitted.
?path : string
-
The path of the cookie. Empty by default if omitted.
?secure : bool
-
Whether the cookie should be marked as Secure. Defaults to false unless Same Site=None attribute is used.
?httpOnly : bool
-
Whether the cookie should be marked as HTTP only. Defaults to false.
?expirationDate : double
-
The expiration date of the cookie as the number of seconds since the UNIX epoch. If omitted then the
cookie becomes a session cookie and will not be retained between sessions.
?sameSite : SameSite
-
The Same Site policy to apply to this cookie. Can be unspecified, no_restriction, lax or strict. Default
is lax.
Returns: Details
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.domain
|
The domain of the cookie; this will be normalized with a preceding dot so that it's also valid for subdomains. Empty by default if omitted. |
Full Usage:
this.expirationDate
|
The expiration date of the cookie as the number of seconds since the UNIX epoch. If omitted then the cookie becomes a session cookie and will not be retained between sessions. |
Full Usage:
this.httpOnly
|
Whether the cookie should be marked as HTTP only. Defaults to false. |
Full Usage:
this.name
|
The name of the cookie. Empty by default if omitted. |
Full Usage:
this.path
|
The path of the cookie. Empty by default if omitted. |
Full Usage:
this.sameSite
|
The Same Site policy to apply to this cookie. Can be unspecified, no_restriction, lax or strict. Default is lax. |
Full Usage:
this.secure
|
Whether the cookie should be marked as Secure. Defaults to false unless Same Site=None attribute is used. |
Full Usage:
this.url
|
The URL to associate the cookie with. The promise will be rejected if the URL is invalid. |
Full Usage:
this.value
|
The value of the cookie. Empty by default if omitted. |
fable-electron-docs-api