ladybird/Userland/Libraries/LibWeb/HTML/FormControlInfrastructure.h

20 lines
470 B
C++

/*
* 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 = {});
}