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:
parent
5c6aa408ed
commit
3cc5286565
3 changed files with 50 additions and 0 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue