#[non_exhaustive]pub struct HttpCookie {
pub domain: Option<String>,
pub expiration_time: Option<i64>,
pub expiration_time_dt: Option<String>,
pub http_only: Option<bool>,
pub is_http_only: Option<bool>,
pub is_secure: Option<bool>,
pub name: Option<String>,
pub path: Option<String>,
pub samesite: Option<String>,
pub secure: Option<bool>,
pub value: Option<String>,
}Expand description
HTTP Cookie
The HTTP Cookie object, also known as a web cookie or browser cookie, contains details and values pertaining to a small piece of data that a server sends to a user’s web browser. This data is then stored by the browser and sent back to the server with subsequent requests, allowing the server to remember and track certain information about the user’s browsing session or preferences.
[] Category: | Name: http_cookie
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.domain: Option<String>Domain
The domain name for the server from which the http_cookie is served.
optional
expiration_time: Option<i64>Expiration Time
The expiration time of the HTTP cookie.
optional
expiration_time_dt: Option<String>Expiration Time
The expiration time of the HTTP cookie.
optional
http_only: Option<bool>HTTP Only
A cookie attribute to make it inaccessible via JavaScript
optional
is_http_only: Option<bool>HTTP Only
This attribute prevents the cookie from being accessed via JavaScript.
optional
is_secure: Option<bool>Secure
The cookie attribute indicates that cookies are sent to the server only when the request is encrypted using the HTTPS protocol.
optional
name: Option<String>Name
The HTTP cookie name.
required
path: Option<String>Path
The path of the HTTP cookie.
optional
samesite: Option<String>SameSite
The cookie attribute that lets servers specify whether/when cookies are sent with cross-site requests. Values are: Strict, Lax or None
optional
secure: Option<bool>Secure
The cookie attribute to only send cookies to the server with an encrypted request over the HTTPS protocol.
optional
value: Option<String>Value
The HTTP cookie value.
required
Trait Implementations§
Source§impl Clone for HttpCookie
impl Clone for HttpCookie
Source§fn clone(&self) -> HttpCookie
fn clone(&self) -> HttpCookie
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more