2023-08-28 17:38:05 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2023, Kenneth Myhra <kennethmyhra@serenityos.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/String.h>
|
|
|
|
|
#include <AK/Variant.h>
|
2024-11-15 04:01:23 +13:00
|
|
|
#include <LibGC/Root.h>
|
2023-08-28 17:38:05 +02:00
|
|
|
#include <LibWeb/Forward.h>
|
|
|
|
|
|
|
|
|
|
namespace Web::XHR {
|
|
|
|
|
|
|
|
|
|
// https://xhr.spec.whatwg.org/#formdataentryvalue
|
2024-11-15 04:01:23 +13:00
|
|
|
using FormDataEntryValue = Variant<GC::Root<FileAPI::File>, String>;
|
2023-08-28 17:38:05 +02:00
|
|
|
|
|
|
|
|
struct FormDataEntry {
|
|
|
|
|
String name;
|
|
|
|
|
FormDataEntryValue value;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|