This is an automated email from the ASF dual-hosted git repository.

fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-http.git

commit 4e1ac5cdc429186d321090d01a675d50e529a17a
Author: PJ Fanning <[email protected]>
AuthorDate: Thu Jan 15 12:38:13 2026 +0100

    Java API: add FormData getFields method
---
 .../main/java/org/apache/pekko/http/javadsl/model/FormData.java  | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git 
a/http-core/src/main/java/org/apache/pekko/http/javadsl/model/FormData.java 
b/http-core/src/main/java/org/apache/pekko/http/javadsl/model/FormData.java
index ece39099a..56f793f0e 100644
--- a/http-core/src/main/java/org/apache/pekko/http/javadsl/model/FormData.java
+++ b/http-core/src/main/java/org/apache/pekko/http/javadsl/model/FormData.java
@@ -26,6 +26,15 @@ public final class FormData {
     this.fields = fields;
   }
 
+  /**
+   * Returns the fields of this FormData instance.
+   * @return the fields
+   * @since 2.0.0
+   */
+  public Query getFields() {
+    return fields;
+  }
+
   /** Converts this FormData to a RequestEntity using UTF8 encoding. */
   public RequestEntity toEntity() {
     return HttpEntities.create(


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to