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

LibWeb: Add support for DOM::Document to XHR::send()

This patch adds support for posting a DOM::Document using XHR::send().
This commit is contained in:
Kenneth Myhra 2022-10-15 16:28:49 +02:00 committed by Ali Mohammad Pur
parent d5247ae33e
commit 7831e62955
4 changed files with 27 additions and 10 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);
ByteString? getResponseHeader(ByteString name);
ByteString getAllResponseHeaders();