pub struct Cookie {
pub name: String,
pub value: String,
pub domain: String,
pub path: String,
pub secure: bool,
pub http_only: bool,
pub same_site: Option<SameSite>,
pub expires: Option<f64>,
pub partitioned: bool,
}Expand description
A cookie in engine-agnostic terms, mirroring the RFC 6265bis record (the shape
the cookie crate uses, which both Mere’s
netfetcher jar and Servo’s net jar build on). Adapters convert to/from the
engine’s own cookie type; carrying the full record keeps a flip’s session lossless.
Fields§
§name: String§value: String§domain: String§path: String§secure: bool§http_only: bool§same_site: Option<SameSite>SameSite gating, or None when unspecified.
expires: Option<f64>Absolute expiry in Unix seconds (the normalized form of Expires / Max-Age),
or None for a session cookie.
partitioned: boolPartitioned (CHIPS): the cookie is keyed to the top-level site.
Trait Implementations§
impl StructuralPartialEq for Cookie
Auto Trait Implementations§
impl Freeze for Cookie
impl RefUnwindSafe for Cookie
impl Send for Cookie
impl Sync for Cookie
impl Unpin for Cookie
impl UnsafeUnpin for Cookie
impl UnwindSafe for Cookie
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more