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

LibWeb: Introduce the FormData interface from the XHR specification

This commit is contained in:
Kenneth Myhra 2023-02-03 21:50:05 +01:00 committed by Linus Groh
parent b74d5a423d
commit d5b5b94a35
9 changed files with 317 additions and 0 deletions

View file

@ -0,0 +1,20 @@
/*
* Copyright (c) 2023, Kenneth Myhra <kennethmyhra@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/XHR/FormData.h>
namespace Web::HTML {
struct Entry {
String name;
Variant<JS::NonnullGCPtr<FileAPI::File>, String> value;
};
WebIDL::ExceptionOr<Entry> create_entry(JS::Realm& realm, String const& name, Variant<JS::NonnullGCPtr<FileAPI::Blob>, String> const& value, Optional<String> const& filename = {});
}