1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:07:45 +00:00

LibWeb: Add XMLHttpRequest::timeout setter and getter

This commit is contained in:
Kenneth Myhra 2022-04-23 21:42:15 +02:00 committed by Linus Groh
parent 1e1d59cc25
commit 8b42c05648
3 changed files with 24 additions and 0 deletions

View file

@ -71,6 +71,9 @@ public:
DOM::ExceptionOr<void> override_mime_type(String const& mime);
DOM::ExceptionOr<void> set_timeout(u32 timeout);
u32 timeout() const;
private:
virtual void ref_event_target() override { ref(); }
virtual void unref_event_target() override { unref(); }
@ -96,6 +99,7 @@ private:
ReadyState m_ready_state { ReadyState::Unsent };
unsigned m_status { 0 };
bool m_send { false };
u32 m_timeout { 0 };
String m_method;
AK::URL m_url;