mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibWeb: Implement responseType and response for XHR
This makes us capable of loading non-utf8 content via XHR.
This commit is contained in:
parent
16c0646b9d
commit
385b07dcda
Notes:
sideshowbarker
2024-07-17 18:42:18 +09:00
Author: https://github.com/alimpfard
Commit: 385b07dcda
Pull-request: https://github.com/SerenityOS/serenity/pull/12548
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/linusg
4 changed files with 133 additions and 9 deletions
|
@ -1,3 +1,12 @@
|
|||
enum XMLHttpRequestResponseType {
|
||||
"",
|
||||
"arraybuffer",
|
||||
"blob",
|
||||
"document",
|
||||
"json",
|
||||
"text"
|
||||
};
|
||||
|
||||
interface XMLHttpRequest : XMLHttpRequestEventTarget {
|
||||
|
||||
constructor();
|
||||
|
@ -11,6 +20,8 @@ interface XMLHttpRequest : XMLHttpRequestEventTarget {
|
|||
readonly attribute unsigned short readyState;
|
||||
readonly attribute unsigned short status;
|
||||
readonly attribute DOMString responseText;
|
||||
readonly attribute any response;
|
||||
attribute XMLHttpRequestResponseType responseType;
|
||||
|
||||
undefined open(DOMString method, DOMString url);
|
||||
undefined setRequestHeader(DOMString name, DOMString value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue