mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 14:05:15 +00:00
The URLPattern spec is intended to be implemented inside of LibURL, with LibWeb only responsible for the IDL conversion layer, in a similar manner to how URL is implemented.
27 lines
554 B
C++
27 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;
|
|
};
|
|
|
|
}
|