1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:17:35 +00:00

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
parent 1dc05fcc12
commit d11d26ef91
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);