1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:17:44 +00:00

AK: URL should support file:// URL's

Also add some setters since this class was very setter-less.
This commit is contained in:
Andreas Kling 2019-10-05 10:14:42 +02:00
parent 4f47146433
commit d64c054d25
2 changed files with 14 additions and 4 deletions

View file

@ -24,6 +24,11 @@ public:
String path() const { return m_path; }
u16 port() const { return m_port; }
void set_protocol(const String& protocol) { m_protocol = protocol; }
void set_host(const String& host) { m_host = host; }
void set_path(const String& path) { m_path = path; }
void set_port(u16 port) { m_port = port; }
String to_string() const;
private: