Class FormData
java.lang.Object
build.serve.form.FormData
Parsed
application/x-www-form-urlencoded form data.
Obtain an instance from an inbound Request:
var form = FormData.from(exchange.request());
var name = form.get("name").orElse("");
- Since:
- Apr-2026
- Author:
- reed.vonredwitz
-
Method Summary
Modifier and TypeMethodDescriptionfields()Returns all fields as an unmodifiable map.static FormDatafrom(build.serve.foundation.Request request) Parsesapplication/x-www-form-urlencodedform data from the givenRequest.Returns the first value for the given field name, or empty if absent.Returns all values for the given field name.static FormDataParsesapplication/x-www-form-urlencodedform data from a raw string.
-
Method Details
-
from
-
parse
-
get
-
getAll
-
fields
-