URL: Add some convenience constructors

This commit is contained in:
Andreas Kling 2019-08-10 19:31:37 +02:00
parent ed43770b2f
commit fb636389d6
Notes: sideshowbarker 2024-07-19 12:46:08 +09:00

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; }