mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 07:37:03 +00:00
LibWeb: Implement XMLHttpRequest.requestType setter according to spec
This commit is contained in:
parent
e448c74736
commit
455167008d
Notes:
sideshowbarker
2024-07-17 05:09:24 +09:00
Author: https://github.com/awesomekling
Commit: 455167008d
2 changed files with 21 additions and 1 deletions
|
@ -50,7 +50,7 @@ public:
|
|||
WebIDL::ExceptionOr<void> send(Optional<Fetch::XMLHttpRequestBodyInit> body);
|
||||
|
||||
WebIDL::ExceptionOr<void> set_request_header(String const& header, String const& value);
|
||||
void set_response_type(Bindings::XMLHttpRequestResponseType type) { m_response_type = type; }
|
||||
WebIDL::ExceptionOr<void> set_response_type(Bindings::XMLHttpRequestResponseType);
|
||||
|
||||
String get_response_header(String const& name) { return m_response_headers.get(name).value_or({}); }
|
||||
String get_all_response_headers() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue