LibWeb: Implement BufferSource support for XHR::send()

This commit is contained in:
Kenneth Myhra 2022-07-22 18:50:30 +02:00 committed by Linus Groh
commit 9a1c27a163
Notes: sideshowbarker 2024-07-17 12:02:22 +09:00
3 changed files with 8 additions and 2 deletions

View file

@ -24,7 +24,7 @@
namespace Web::XHR {
// https://fetch.spec.whatwg.org/#typedefdef-xmlhttprequestbodyinit
using XMLHttpRequestBodyInit = Variant<NonnullRefPtr<FileAPI::Blob>, NonnullRefPtr<URL::URLSearchParams>, String>;
using XMLHttpRequestBodyInit = Variant<NonnullRefPtr<FileAPI::Blob>, JS::Handle<JS::Object>, NonnullRefPtr<URL::URLSearchParams>, String>;
class XMLHttpRequest final
: public RefCounted<XMLHttpRequest>