Type Definition user_agent::ReqwestSession

source ·
pub type ReqwestSession = Session<Client>;

Methods from Deref<Target = CookieStore>

Return an Iterator of the cookies for url in the store

Store the cookies received from url

Returns true if the CookieStore contains an unexpired Cookie corresponding to the specified domain, path, and name.

Returns true if the CookieStore contains any (even an expired) Cookie corresponding to the specified domain, path, and name.

Returns a reference to the unexpired Cookie corresponding to the specified domain, path, and name.

Returns a reference to the (possibly expired) Cookie corresponding to the specified domain, path, and name.

Removes a Cookie from the store, returning the Cookie if it was in the store

Returns a collection of references to unexpired cookies that path- and domain-match request_url, as well as having HttpOnly and Secure attributes compatible with the request_url.

Parses a new Cookie from cookie_str and inserts it into the store.

Converts a cookie::Cookie (from the cookie crate) into a user_agent::Cookie and inserts it into the store.

Inserts cookie, received from request_url, into the store, following the rules of the IETF RFC6265 Storage Model. If the Cookie is unexpired and is successfully inserted, returns Ok(StoreAction::Inserted). If the Cookie is expired and matches an existing Cookie in the store, the existing Cookie wil be expired() and Ok(StoreAction::ExpiredExisting) will be returned.

Clear the contents of the store

An iterator visiting all the unexpired cookies in the store

An iterator visiting all (including expired) cookies in the store

Serialize any unexpired and persistent cookies in the store with cookie_to_string and write them to writer

Serialize any unexpired and persistent cookies in the store to JSON format and write them to writer

Trait Implementations

The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.