Struct chromiumoxide::cdp::browser_protocol::network::Cookie
source · pub struct Cookie {Show 16 fields
pub name: String,
pub value: String,
pub domain: String,
pub path: String,
pub expires: f64,
pub size: i64,
pub http_only: bool,
pub secure: bool,
pub session: bool,
pub same_site: Option<CookieSameSite>,
pub priority: CookiePriority,
pub same_party: bool,
pub source_scheme: CookieSourceScheme,
pub source_port: i64,
pub partition_key: Option<String>,
pub partition_key_opaque: Option<bool>,
}
Expand description
Cookie object Cookie
Fields§
§name: String
Cookie name.
value: String
Cookie value.
domain: String
Cookie domain.
path: String
Cookie path.
expires: f64
Cookie expiration date as the number of seconds since the UNIX epoch.
size: i64
Cookie size.
http_only: bool
True if cookie is http-only.
secure: bool
True if cookie is secure.
session: bool
True in case of session cookie.
same_site: Option<CookieSameSite>
Cookie SameSite type.
priority: CookiePriority
Cookie Priority
same_party: bool
True if cookie is SameParty.
source_scheme: CookieSourceScheme
Cookie source scheme type.
source_port: i64
Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.
partition_key: Option<String>
Cookie partition key. The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie.
partition_key_opaque: Option<bool>
True if cookie partition key is opaque.