mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
LibWeb: Add two more scheme helpers to the Fetch infrastructure
This commit is contained in:
parent
b02402e116
commit
66f4e2b3b0
2 changed files with 18 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
||||
* Copyright (c) 2022, Andreas Kling <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -30,5 +31,7 @@ inline constexpr Array FETCH_SCHEMES = {
|
|||
};
|
||||
|
||||
[[nodiscard]] bool is_local_url(AK::URL const&);
|
||||
[[nodiscard]] bool is_fetch_scheme(StringView);
|
||||
[[nodiscard]] bool is_http_or_https_scheme(StringView);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue