reqwest_cookie_store
provides implementations of reqwest::cookie::CookieStore
for cookie_store.
Example
The following example demonstrates loading a cookie_store::CookieStore
from disk, and using it within a
CookieStoreMutex
. It then makes a series of requests, examining and modifying the contents
of the underlying cookie_store::CookieStore
in between.
// Load an existing set of cookies, serialized as json
let cookie_store = ;
let cookie_store = new;
let cookie_store = new;
// Build a `reqwest` Client, providing the deserialized store
let client = builder
.cookie_provider
.build
.unwrap;
// Make a sample request
client.get.send.await.unwrap;
// Make another request from another domain
println!;
client.get.send.await.unwrap;
// Get some new cookies
client.get.send.await.unwrap;