std :: http::cookie
Struct std::SetCookie
struct SetCookie {
struct String name;
struct String value;
struct String path;
struct String domain;
long long max_age;
long long expires;
int secure;
int http_only;
int same_site;
int partitioned;
}Fields
empty: not sent
empty: not sent (host-only cookie)
seconds; -1 = not sent; 0 deletes the cookie
Unix seconds; 0 = not sent (session cookie)
COOKIE_SAMESITE_*
CHIPS "Partitioned" attribute
Methods
name=value with no attributes (path "/" is a common next step).
A cookie that tells the browser to delete 'name' (empty value, Max-Age=0, Expires in 1970) for the given path.
Parses one Set-Cookie header value. *ok = 0 if there is no "name=value" first part. Unknown attributes are ignored, as browsers do.
"name=value; Path=/; Max-Age=3600; Expires=...; Secure; HttpOnly; SameSite=Lax" — the header value.
= drop()