mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-07 08:39:43 +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.
22 lines
436 B
C++
22 lines
436 B
C++
/*
|
|
* Copyright (c) 2025, Shannon Booth <shannon@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Variant.h>
|
|
#include <LibURL/Pattern/Init.h>
|
|
|
|
namespace URL::Pattern {
|
|
|
|
// https://urlpattern.spec.whatwg.org/#typedefdef-urlpatterninput
|
|
using Input = Variant<String, Init>;
|
|
|
|
// https://urlpattern.spec.whatwg.org/#dictdef-urlpatternoptions
|
|
struct Options {
|
|
bool ignore_case { false };
|
|
};
|
|
|
|
}
|