Class FormPart
java.lang.Object
build.serve.form.FormPart
A single part from a
multipart/form-data request body.- Since:
- Apr-2026
- Author:
- reed.vonredwitz
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]bytes()The raw bytes of this part's body.TheContent-Typeof this part, if declared.filename()The original filename, if this part represents a file upload.name()The form field name from theContent-Dispositionheader.value()The part body decoded as a UTF-8 string.
-
Method Details
-
name
The form field name from theContent-Dispositionheader.- Returns:
- the field name
-
filename
-
contentType
-
bytes
public byte[] bytes()The raw bytes of this part's body.- Returns:
- the part body as a byte array
-
value
-