# Uses of Interface
org.springframework.http.client.MultipartBodyBuilder.PartBuilder

Packages that use MultipartBodyBuilder.PartBuilder
Package
Description
org.springframework.http.client
Contains an abstraction over client-side HTTP.

## Uses of MultipartBodyBuilder.PartBuilder in org.springframework.http.client

Methods in org.springframework.http.client that return MultipartBodyBuilder.PartBuilder
Modifier and Type
Method
Description
`<T, P extends Publisher<T>>
MultipartBodyBuilder.PartBuilder`
MultipartBodyBuilder.`asyncPart(String name, P publisher, Class<T> elementClass)`
Add a part from `Publisher` content.
`<T, P extends Publisher<T>>
MultipartBodyBuilder.PartBuilder`
MultipartBodyBuilder.`asyncPart(String name, P publisher, org.springframework.core.ParameterizedTypeReference<T> typeReference)`
Variant of `MultipartBodyBuilder.asyncPart(String, Publisher, Class)` with a `ParameterizedTypeReference` for the element type information.
`MultipartBodyBuilder.PartBuilder`
MultipartBodyBuilder.PartBuilder.`contentType(MediaType contentType)`
Set the media type of the part.
`MultipartBodyBuilder.PartBuilder`
MultipartBodyBuilder.PartBuilder.`filename(String filename)`
Set the filename parameter for a file part.
`MultipartBodyBuilder.PartBuilder`
MultipartBodyBuilder.PartBuilder.`header(String headerName, String... headerValues)`
Add part header values.
`MultipartBodyBuilder.PartBuilder`
MultipartBodyBuilder.PartBuilder.`headers(Consumer<HttpHeaders> headersConsumer)`
Manipulate the part headers through the given consumer.
`MultipartBodyBuilder.PartBuilder`
MultipartBodyBuilder.`part(String name, Object part)`
Add a part where the Object may be: String -- form field `Resource` -- file part Object -- content to be encoded (for example, to JSON).
`MultipartBodyBuilder.PartBuilder`
MultipartBodyBuilder.`part(String name, Object part, MediaType contentType)`
Variant of `MultipartBodyBuilder.part(String, Object)` that also accepts a MediaType.