1
Fork 0
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:
ForLoveOfCats 2022-03-23 22:46:52 -04:00 committed by Ali Mohammad Pur
parent 95541d7064
commit a7fe3183f5
2 changed files with 18 additions and 0 deletions

View file

@ -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);