Header menu logo fable-electron-docs-api

Details Type

Constructors

Constructor Description

Details(url, ?name, ?value, ?domain, ?path, ?secure, ?httpOnly, ?expirationDate, ?sameSite)

Full Usage: Details(url, ?name, ?value, ?domain, ?path, ?secure, ?httpOnly, ?expirationDate, ?sameSite)

Parameters:
    url : 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
url : 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

this.domain

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.

this.expirationDate

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.

this.httpOnly

Full Usage: this.httpOnly

Whether the cookie should be marked as HTTP only. Defaults to false.

this.name

Full Usage: this.name

The name of the cookie. Empty by default if omitted.

this.path

Full Usage: this.path

The path of the cookie. Empty by default if omitted.

this.sameSite

Full Usage: this.sameSite

The Same Site policy to apply to this cookie. Can be unspecified, no_restriction, lax or strict. Default is lax.

this.secure

Full Usage: this.secure

Whether the cookie should be marked as Secure. Defaults to false unless Same Site=None attribute is used.

this.url

Full Usage: this.url

The URL to associate the cookie with. The promise will be rejected if the URL is invalid.

this.value

Full Usage: this.value

The value of the cookie. Empty by default if omitted.

Type something to start searching.