1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:47:35 +00:00

URL: Add some convenience constructors

This commit is contained in:
Andreas Kling 2019-08-10 19:31:37 +02:00
parent ed43770b2f
commit fb636389d6

View file

@ -9,6 +9,14 @@ class URL {
public:
URL() {}
URL(const StringView&);
URL(const char* string)
: URL(StringView(string))
{
}
URL(const String& string)
: URL(string.view())
{
}
bool is_valid() const { return m_valid; }
String protocol() const { return m_protocol; }