mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 14:17:34 +00:00
Browser: Process Domain cookie attribute
This commit is contained in:
parent
a554676008
commit
3d53af354e
2 changed files with 24 additions and 4 deletions
|
@ -38,6 +38,7 @@ struct Cookie {
|
|||
String name;
|
||||
String value;
|
||||
Core::DateTime expiry_time {};
|
||||
String domain {};
|
||||
};
|
||||
|
||||
class CookieJar {
|
||||
|
@ -47,7 +48,7 @@ public:
|
|||
|
||||
private:
|
||||
static Optional<String> canonicalize_domain(const URL& url);
|
||||
static Optional<Cookie> parse_cookie(const String& cookie_string);
|
||||
static Optional<Cookie> parse_cookie(const String& cookie_string, String default_domain);
|
||||
static void parse_attributes(Cookie& cookie, StringView unparsed_attributes);
|
||||
static void process_attribute(Cookie& cookie, StringView attribute_name, StringView attribute_value);
|
||||
static void on_expires_attribute(Cookie& cookie, StringView attribute_value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue