1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:27:45 +00:00

LibWeb: Parse SameSite cookie attribute

This commit is contained in:
Smrtnyk 2022-10-21 13:00:04 +02:00 committed by Linus Groh
parent a534e61b44
commit b08ae57b23
4 changed files with 55 additions and 0 deletions

View file

@ -10,12 +10,14 @@
#include <AK/String.h>
#include <LibCore/DateTime.h>
#include <LibIPC/Forward.h>
#include <LibWeb/Cookie/Cookie.h>
namespace Web::Cookie {
struct ParsedCookie {
String name;
String value;
SameSite same_site_attribute { SameSite::Default };
Optional<Core::DateTime> expiry_time_from_expires_attribute {};
Optional<Core::DateTime> expiry_time_from_max_age_attribute {};
Optional<String> domain {};