mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
LibWeb: Implement XMLHttpRequest.getResponseHeader()
This lets jQuery's AJAX functionality progress further :^)
This commit is contained in:
parent
288b90a297
commit
57ead17d54
Notes:
sideshowbarker
2024-07-18 20:51:50 +09:00
Author: https://github.com/linusg
Commit: 57ead17d54
Pull-request: https://github.com/SerenityOS/serenity/pull/6090
4 changed files with 8 additions and 2 deletions
|
@ -76,6 +76,8 @@ public:
|
|||
|
||||
DOM::ExceptionOr<void> set_request_header(const String& header, const String& value);
|
||||
|
||||
String get_response_header(const String& name) { return m_response_headers.get(name).value_or({}); }
|
||||
|
||||
private:
|
||||
virtual void ref_event_target() override { ref(); }
|
||||
virtual void unref_event_target() override { unref(); }
|
||||
|
@ -98,6 +100,7 @@ private:
|
|||
URL m_url;
|
||||
|
||||
HashMap<String, String, CaseInsensitiveStringTraits> m_request_headers;
|
||||
HashMap<String, String, CaseInsensitiveStringTraits> m_response_headers;
|
||||
|
||||
bool m_synchronous { false };
|
||||
bool m_upload_complete { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue