Struct xpcom::interfaces::nsICookie2 [] [src]

#[repr(C)]
pub struct nsICookie2 { /* fields omitted */ }

interface nsICookie2 : nsICookie

/**
 * Main cookie object interface for use by consumers:
 * extends nsICookie, a frozen interface for external
 * access of cookie objects
 */

Methods

impl nsICookie2
[src]

[src]

Cast this nsICookie2 to one of its base interfaces.

impl nsICookie2
[src]

SAMESITE_UNSET: i64 = 0

SAMESITE_LAX: i64 = 1

SAMESITE_STRICT: i64 = 2

[src]

/**
     * the host (possibly fully qualified) of the cookie,
     * without a leading dot to represent if it is a
     * domain cookie.
     */

readonly attribute AUTF8String rawHost;

[src]

/**
     * true if the cookie is a session cookie.
     * note that expiry time will also be honored
     * for session cookies (see below); thus, whichever is
     * the more restrictive of the two will take effect.
     */

readonly attribute boolean isSession;

[src]

/**
     * the actual expiry time of the cookie, in seconds
     * since midnight (00:00:00), January 1, 1970 UTC.
     *
     * this is distinct from nsICookie::expires, which
     * has different and obsolete semantics.
     */

readonly attribute int64_t expiry;

[src]

/**
     * true if the cookie is an http only cookie
     */

readonly attribute boolean isHttpOnly;

[src]

/**
     * the creation time of the cookie, in microseconds
     * since midnight (00:00:00), January 1, 1970 UTC.
     */

readonly attribute int64_t creationTime;

[src]

/**
     * the last time the cookie was accessed (i.e. created,
     * modified, or read by the server), in microseconds
     * since midnight (00:00:00), January 1, 1970 UTC.
     *
     * note that this time may be approximate.
     */

readonly attribute int64_t lastAccessed;

[src]

/**
     * the sameSite attribute; this controls the cookie behavior for cross-site
     * requests as per
     * https://tools.ietf.org/html/draft-west-first-party-cookies-07
     *
     * This should be one of:
     * - SAMESITE_UNSET - the SameSite attribute is not present
     * - SAMESITE_LAX - the SameSite attribute is present, but not strict
     * - SAMESITE_STRICT - the SameSite attribute is present and strict
     */

readonly attribute int32_t sameSite;

Methods from Deref<Target = nsICookie>

[src]

Cast this nsICookie to one of its base interfaces.

[src]

/**
     * the name of the cookie
     */

readonly attribute ACString name;

[src]

/**
     * the cookie value
     */

readonly attribute AUTF8String value;

[src]

/**
     * true if the cookie is a domain cookie, false otherwise
     */

readonly attribute boolean isDomain;

[src]

/**
     * the host (possibly fully qualified) of the cookie
     */

readonly attribute AUTF8String host;

[src]

/**
     * the path pertaining to the cookie
     */

readonly attribute AUTF8String path;

[src]

/**
     * true if the cookie was transmitted over ssl, false otherwise
     */

readonly attribute boolean isSecure;

[src]

/**
     * @DEPRECATED use nsICookie2.expiry and nsICookie2.isSession instead.
     *
     * expiration time in seconds since midnight (00:00:00), January 1, 1970 UTC.
     * expires = 0 represents a session cookie.
     * expires = 1 represents an expiration time earlier than Jan 1, 1970.
     */

readonly attribute uint64_t expires;

[src]

readonly attribute nsCookieStatus status;

[src]

readonly attribute nsCookiePolicy policy;

Trait Implementations

impl XpCom for nsICookie2
[src]

IID: nsIID = nsID(3189792174, 20300, 4582, [128, 186, 234, 92, 211, 16, 193, 168])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsICookie2
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsICookie2
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.