|
@@ -5,6 +5,8 @@
|
|
|
|
|
|
namespace AK {
|
|
|
|
|
|
+// FIXME: URL needs query string parsing.
|
|
|
+
|
|
|
class URL {
|
|
|
public:
|
|
|
URL() {}
|
|
@@ -22,11 +24,13 @@ public:
|
|
|
String protocol() const { return m_protocol; }
|
|
|
String host() const { return m_host; }
|
|
|
String path() const { return m_path; }
|
|
|
+ String query() const { return m_query; }
|
|
|
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_query(const String& query) { m_query = query; }
|
|
|
void set_port(u16 port) { m_port = port; }
|
|
|
|
|
|
String to_string() const;
|
|
@@ -41,6 +45,7 @@ private:
|
|
|
String m_protocol;
|
|
|
String m_host;
|
|
|
String m_path;
|
|
|
+ String m_query;
|
|
|
};
|
|
|
|
|
|
}
|