mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-21 16:43:20 +00:00
28 lines
554 B
C
28 lines
554 B
C
![]() |
/*
|
||
|
* Copyright (c) 2025, Shannon Booth <shannon@serenityos.org>
|
||
|
*
|
||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <AK/Optional.h>
|
||
|
#include <AK/String.h>
|
||
|
|
||
|
namespace URL::Pattern {
|
||
|
|
||
|
// https://urlpattern.spec.whatwg.org/#dictdef-urlpatterninit
|
||
|
struct Init {
|
||
|
Optional<String> protocol;
|
||
|
Optional<String> username;
|
||
|
Optional<String> password;
|
||
|
Optional<String> hostname;
|
||
|
Optional<String> port;
|
||
|
Optional<String> pathname;
|
||
|
Optional<String> search;
|
||
|
Optional<String> hash;
|
||
|
Optional<String> base_url;
|
||
|
};
|
||
|
|
||
|
}
|