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

LibWeb: Helper for creating load requests with a Cookie header

Instead of all interested parties needing to write out the code to get
the cookie value for a load request, add a static helper to do it in
one location.
This commit is contained in:
Timothy Flynn 2021-04-14 10:34:18 -04:00 committed by Andreas Kling
parent 5c6aa408ed
commit 3cc5286565
3 changed files with 50 additions and 0 deletions

View file

@ -39,6 +39,8 @@ public:
{
}
static LoadRequest create_for_url_on_page(const URL& url, Page* page);
bool is_valid() const { return m_url.is_valid(); }
const URL& url() const { return m_url; }