- Type Parameters:
A
- the type of data sent in the part
- All Superinterfaces:
OutboundData<A>
Represents a part in a multipart/form-data request body as defined by RFC 7578.
- Since:
- 1.6
- Author:
- Jeremy Kuhn
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies the part's file name.headers()
Returns the part's headers.headers
(Consumer<OutboundRequestHeaders> headersConfigurer) Specifies the part's headers.Specifies the part's name.Methods inherited from interface io.inverno.mod.http.base.OutboundData
stream, value
-
Method Details
-
name
Specifies the part's name.
- Parameters:
name
- a name- Returns:
- this part
-
filename
Specifies the part's file name.
- Parameters:
filename
- a file name- Returns:
- this part
-
headers
InboundRequestHeaders headers()Returns the part's headers.
The returned headers are read-only, use
headers(java.util.function.Consumer)
for setting part's headers.- Returns:
- read-only part's headers
-
headers
Specifies the part's headers.
- Parameters:
headersConfigurer
- a headers configurer- Returns:
- this part
-