mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57:35 +00:00
LibWeb: Add the Web::URL namespace and move URLEncoder to it
This namespace will be used for all interfaces defined in the URL specification, like URL and URLSearchParams. This has the unfortunate side-effect of requiring us to use the fully qualified AK::URL name whenever we want to refer to the AK class, so this commit also fixes all such references.
This commit is contained in:
parent
2b78e227f2
commit
4629f2e4ad
54 changed files with 236 additions and 225 deletions
|
@ -21,12 +21,12 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
static LoadRequest create_for_url_on_page(const URL& url, Page* page);
|
||||
static LoadRequest create_for_url_on_page(const AK::URL& url, Page* page);
|
||||
|
||||
bool is_valid() const { return m_url.is_valid(); }
|
||||
|
||||
const URL& url() const { return m_url; }
|
||||
void set_url(const URL& url) { m_url = url; }
|
||||
const AK::URL& url() const { return m_url; }
|
||||
void set_url(const AK::URL& url) { m_url = url; }
|
||||
|
||||
const String& method() const { return m_method; }
|
||||
void set_method(const String& method) { m_method = method; }
|
||||
|
@ -65,7 +65,7 @@ public:
|
|||
const HashMap<String, String>& headers() const { return m_headers; }
|
||||
|
||||
private:
|
||||
URL m_url;
|
||||
AK::URL m_url;
|
||||
String m_method { "GET" };
|
||||
HashMap<String, String> m_headers;
|
||||
ByteBuffer m_body;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue