diff options
author | Kenneth Myhra <kennethmyhra@gmail.com> | 2023-04-04 22:34:47 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-04-05 09:43:52 +0100 |
commit | 5df4d66d91149fe66f8660252709a1f6fbdf3124 (patch) | |
tree | 5c9fb12dd0be4a68ad160b423f3d45cce5feeed3 /Userland | |
parent | 84722ae2ef4ca766c65b68a42e29d68d6ca37929 (diff) | |
download | serenity-5df4d66d91149fe66f8660252709a1f6fbdf3124.zip |
LibWeb: Add get accessor to internal entry list of FormData
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibWeb/XHR/FormData.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/XHR/FormData.h b/Userland/Libraries/LibWeb/XHR/FormData.h index 7cfbc9934a..56734a2784 100644 --- a/Userland/Libraries/LibWeb/XHR/FormData.h +++ b/Userland/Libraries/LibWeb/XHR/FormData.h @@ -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); |