Struct reqwest::cookie::Jar [−][src]
pub struct Jar(_);
Expand description
A good default CookieStore
implementation.
This is the implementation used when simply calling cookie_store(true)
.
This type is exposed to allow creating one and filling it with some
existing cookies more easily, before creating a Client
.
Implementations
Add a cookie to this jar.
Example
use reqwest::{cookie::Jar, Url}; let cookie = "foo=bar; Domain=yolo.local"; let url = "https://yolo.local".parse::<Url>().unwrap(); let jar = Jar::default(); jar.add_cookie_str(cookie, &url); // and now add to a `ClientBuilder`?
Trait Implementations
Store a set of Set-Cookie header values recevied from url
Get any Cookie values in the store for url
Auto Trait Implementations
impl RefUnwindSafe for Jar
impl UnwindSafe for Jar