ladybird/Libraries/LibURL/Pattern/Init.h
Shannon Booth 46bfced9ad LibURL: Add representations of URLPattern{Init,Options,Input}
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.
2025-01-27 18:07:17 +00:00

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;
};
}