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:
parent
a534e61b44
commit
b08ae57b23
4 changed files with 55 additions and 0 deletions
|
@ -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 {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue