mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:37:34 +00:00
AK: Add URL::create_with_help_scheme
helper function
This commit is contained in:
parent
95541d7064
commit
a7fe3183f5
2 changed files with 18 additions and 0 deletions
1
AK/URL.h
1
AK/URL.h
|
@ -98,6 +98,7 @@ public:
|
|||
static URL create_with_url_or_path(String const&);
|
||||
static URL create_with_file_scheme(String const& path, String const& fragment = {}, String const& hostname = {});
|
||||
static URL create_with_file_protocol(String const& path, String const& fragment = {}) { return create_with_file_scheme(path, fragment); }
|
||||
static URL create_with_help_scheme(String const& path, String const& fragment = {}, String const& hostname = {});
|
||||
static URL create_with_data(String mime_type, String payload, bool is_base64 = false) { return URL(move(mime_type), move(payload), is_base64); };
|
||||
|
||||
static bool scheme_requires_port(StringView);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue