public interface Part
Represents a part in a multipart/form-data request body as defined by RFC 7578.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the part's file name.getName()Returns the part's name.headers()Returns the part's headers.InboundData<io.netty.buffer.ByteBuf> raw()Returns the part's raw data.string()Returns the part's data as string.
-
Method Details
-
getName
String getName()Returns the part's name.
- Returns:
- the name
-
getFilename
Returns the part's file name.
- Returns:
- an optional returning the file name or an empty optional if the part is not a file
-
headers
InboundRequestHeaders headers()Returns the part's headers.
- Returns:
- the headers
-
raw
InboundData<io.netty.buffer.ByteBuf> raw()Returns the part's raw data.
- Returns:
- the raw data
-
string
InboundData<CharSequence> string()Returns the part's data as string.
- Returns:
- the string data
-