1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:27:43 +00:00

LibWeb: Add get accessor to internal entry list of FormData

This commit is contained in:
Kenneth Myhra 2023-04-04 22:34:47 +02:00 committed by Linus Groh
parent 84722ae2ef
commit 5df4d66d91

View file

@ -41,6 +41,8 @@ public:
WebIDL::ExceptionOr<void> set(String const& name, String const& value);
WebIDL::ExceptionOr<void> set(String const& name, JS::NonnullGCPtr<FileAPI::Blob> const& blob_value, Optional<String> const& filename = {});
Vector<FormDataEntry> const& entry_list() const { return m_entry_list; }
using ForEachCallback = Function<JS::ThrowCompletionOr<void>(String const&, FormDataEntryValue const&)>;
JS::ThrowCompletionOr<void> for_each(ForEachCallback);