1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:57:35 +00:00

LibWeb: Add non-const variants of Request::{current_,}url()

This commit is contained in:
Linus Groh 2022-10-13 19:35:37 +02:00
parent 0ee8da9556
commit e40c8f550f
2 changed files with 17 additions and 3 deletions

View file

@ -277,8 +277,10 @@ public:
[[nodiscard]] bool timing_allow_failed() const { return m_timing_allow_failed; }
void set_timing_allow_failed(bool timing_allow_failed) { m_timing_allow_failed = timing_allow_failed; }
[[nodiscard]] AK::URL& url();
[[nodiscard]] AK::URL const& url() const;
[[nodiscard]] AK::URL const& current_url();
[[nodiscard]] AK::URL& current_url();
[[nodiscard]] AK::URL const& current_url() const;
void set_url(AK::URL url);
[[nodiscard]] bool destination_is_script_like() const;