pub trait CookieJarExtManual: IsA<CookieJar> + Sealed + 'static {
    // Provided methods
    fn add_cookie(&self, cookie: &mut Cookie) { ... }
    fn add_cookie_full(
        &self,
        cookie: &mut Cookie,
        uri: Option<&Uri>,
        first_party: Option<&Uri>
    ) { ... }
    fn add_cookie_with_first_party(
        &self,
        first_party: &Uri,
        cookie: &mut Cookie
    ) { ... }
    fn delete_cookie(&self, cookie: &mut Cookie) { ... }
}

Provided Methods§

Adds @cookie to @self.

Emits the changed signal if we are modifying an existing cookie or adding a valid new cookie (‘valid’ means that the cookie’s expire date is not in the past).

@cookie will be ‘stolen’ by the jar, so don’t free it afterwards.

a #SoupCookie

Adds @cookie to @self.

Emits the changed signal if we are modifying an existing cookie or adding a valid new cookie (‘valid’ means that the cookie’s expire date is not in the past).

@first_party will be used to reject cookies coming from third party resources in case such a security policy is set in the @self.

@uri will be used to reject setting or overwriting secure cookies from insecure origins. None is treated as secure.

@cookie will be ‘stolen’ by the jar, so don’t free it afterwards.

a #SoupCookie

§uri

the URI setting the cookie

§first_party

the URI for the main document

Adds @cookie to @self.

Emits the changed signal if we are modifying an existing cookie or adding a valid new cookie (‘valid’ means that the cookie’s expire date is not in the past).

@first_party will be used to reject cookies coming from third party resources in case such a security policy is set in the @self.

@cookie will be ‘stolen’ by the jar, so don’t free it afterwards.

For secure cookies to work properly you may want to use add_cookie_full().

§first_party

the URI for the main document

a #SoupCookie

Deletes @cookie from @self.

Emits the changed signal.

a #SoupCookie

Object Safety§

This trait is not object safe.

Implementors§