LibWeb: Implement support for DOM::Document in XHR::send()

Co-authored-by: Linus Groh <mail@linusgroh.de>
This commit is contained in:
Kenneth Myhra 2022-11-10 20:11:25 +01:00 committed by Andrew Kaster
commit d11d26ef91
Notes: sideshowbarker 2024-07-17 04:36:52 +09:00
3 changed files with 26 additions and 9 deletions

View file

@ -1,3 +1,4 @@
#import <DOM/Document.idl>
#import <DOM/EventHandler.idl>
#import <Fetch/BodyInit.idl>
#import <XHR/XMLHttpRequestEventTarget.idl>
@ -33,7 +34,7 @@ interface XMLHttpRequest : XMLHttpRequestEventTarget {
undefined open(DOMString method, DOMString url);
undefined open(ByteString method, USVString url, boolean async, optional USVString? username = {}, optional USVString? password = {});
undefined setRequestHeader(DOMString name, DOMString value);
undefined send(optional XMLHttpRequestBodyInit? body = null);
undefined send(optional (Document or XMLHttpRequestBodyInit)? body = null);
undefined abort();
ByteString? getResponseHeader(ByteString name);