Parcourir la source

LibWeb: Add get accessor to internal entry list of FormData

Kenneth Myhra il y a 2 ans
Parent
commit
5df4d66d91
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      Userland/Libraries/LibWeb/XHR/FormData.h

+ 2 - 0
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);