1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:28:11 +00:00

Everywhere: Use unqualified AK::URL

Now possible in LibWeb now that there is no longer a Web::URL.
This commit is contained in:
Shannon Booth 2024-02-11 20:15:39 +13:00 committed by Andreas Kling
parent f9e5b43b7a
commit 9ce8189f21
156 changed files with 471 additions and 471 deletions

View file

@ -22,7 +22,7 @@ public:
{
}
static LoadRequest create_for_url_on_page(const AK::URL& url, Page* page);
static LoadRequest create_for_url_on_page(const URL& url, Page* page);
// The main resource is the file being displayed in a frame (unlike subresources like images, scripts, etc.)
// If a main resource fails with an HTTP error, we may still display its content if non-empty, e.g a custom 404 page.
@ -31,8 +31,8 @@ public:
bool is_valid() const { return m_url.is_valid(); }
const AK::URL& url() const { return m_url; }
void set_url(const AK::URL& url) { m_url = url; }
const URL& url() const { return m_url; }
void set_url(const URL& url) { m_url = url; }
ByteString const& method() const { return m_method; }
void set_method(ByteString const& method) { m_method = method; }
@ -74,7 +74,7 @@ public:
HashMap<ByteString, ByteString, CaseInsensitiveStringTraits> const& headers() const { return m_headers; }
private:
AK::URL m_url;
URL m_url;
ByteString m_method { "GET" };
HashMap<ByteString, ByteString, CaseInsensitiveStringTraits> m_headers;
ByteBuffer m_body;