diff options
author | Andreas Kling <kling@serenityos.org> | 2022-09-20 10:47:24 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-09-20 14:48:07 +0200 |
commit | 9683da4470e6642f60ca5ec2586564f9a48f9f22 (patch) | |
tree | 4e04081255b0909615d3f484ac9becf10757cda5 | |
parent | 578d73943ac4b7b7cac0eeb0adab8847c187d637 (diff) | |
download | serenity-9683da4470e6642f60ca5ec2586564f9a48f9f22.zip |
LibWeb: Add referrer accessors to Fetch Request
-rw-r--r-- | Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h b/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h index bdd10a63dc..52edd1688d 100644 --- a/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h +++ b/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h @@ -254,6 +254,9 @@ public: [[nodiscard]] u8 redirect_count() const { return m_redirect_count; } void set_redirect_count(u8 redirect_count) { m_redirect_count = redirect_count; } + [[nodiscard]] ReferrerType const& referrer() const { return m_referrer; } + void set_referrer(ReferrerType referrer) { m_referrer = move(referrer); } + [[nodiscard]] ResponseTainting response_tainting() const { return m_response_tainting; } void set_response_tainting(ResponseTainting response_tainting) { m_response_tainting = response_tainting; } |