mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:37:35 +00:00
LibWeb: Implement XMLHttpRequest.requestType setter according to spec
This commit is contained in:
parent
e448c74736
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