Interface MultipartBodyBuilder.PartBuilder
- Enclosing class:
MultipartBodyBuilder
public static interface MultipartBodyBuilder.PartBuilder
Builder that allows for further customization of part headers.
- Since:
- 5.0.2
- Author:
- Arjen Poutsma, Rossen Stoyanchev, Sam Brannen
-
Method Summary
Modifier and TypeMethodDescriptioncontentType
(MediaType contentType) Set the media type of the part.Set the filename parameter for a file part.Add part header values.headers
(Consumer<HttpHeaders> headersConsumer) Manipulate the part headers through the given consumer.
-
Method Details
-
contentType
Set the media type of the part.- Parameters:
contentType
- the content type- Since:
- 5.2
- See Also:
-
filename
-
header
Add part header values.- Parameters:
headerName
- the part header nameheaderValues
- the part header value(s)- Returns:
- this builder
- See Also:
-
headers
Manipulate the part headers through the given consumer.- Parameters:
headersConsumer
- consumer to manipulate the part headers with- Returns:
- this builder
-