1
Fork 0
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:
Andreas Kling 2022-10-24 15:30:54 +02:00
parent e448c74736
commit 455167008d
2 changed files with 21 additions and 1 deletions

View file

@ -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;