diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-09-13 22:34:14 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-14 00:14:45 +0200 |
commit | 55b67ba7a70f038d0796b0dbf3143dfeab91ae28 (patch) | |
tree | a1c32b6eaf8d4c1828ee5adb23db988a956e59da /AK/URLParser.h | |
parent | 6fa4fc8353d79bebfdbfba0fc4eae22cb5935705 (diff) | |
download | serenity-55b67ba7a70f038d0796b0dbf3143dfeab91ae28.zip |
AK: Accept optional url and state override parameters in URLParser
These are required in the specification and used by the web's URL
built-in, this commit also removes the Badge<AK::URL> from URLParser
to allow other classes that need to call the parser directly like the
web's URL built-in to do so.
Diffstat (limited to 'AK/URLParser.h')
-rw-r--r-- | AK/URLParser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/URLParser.h b/AK/URLParser.h index d58451daf9..ea296c07c1 100644 --- a/AK/URLParser.h +++ b/AK/URLParser.h @@ -55,7 +55,7 @@ public: VERIFY_NOT_REACHED(); } - static URL parse(Badge<URL>, StringView const& input, URL const* base_url = nullptr); + static URL parse(StringView const& input, URL const* base_url = nullptr, Optional<URL> url = {}, Optional<State> state_override = {}); private: static Optional<URL> parse_data_url(StringView const& raw_input); |