# Uses of Interface
org.springframework.web.client.RestClient.RequestBodySpec

Packages that use RestClient.RequestBodySpec
Package
Description
org.springframework.web.client
Core package of the client-side web support.

## Uses of RestClient.RequestBodySpec in org.springframework.web.client

Subinterfaces of RestClient.RequestBodySpec in org.springframework.web.client
Modifier and Type
Interface
Description
`static interface`
`RestClient.RequestBodyUriSpec`
Contract for specifying request headers, body and URI for a request.
Methods in org.springframework.web.client that return RestClient.RequestBodySpec
Modifier and Type
Method
Description
`RestClient.RequestBodySpec`
RestClient.RequestBodySpec.`body(Object body)`
Set the body of the request to the given `Object`.
`RestClient.RequestBodySpec`
RestClient.RequestBodySpec.`body(StreamingHttpOutputMessage.Body body)`
Set the body of the request to the given function that writes to an `OutputStream`.
`<T> RestClient.RequestBodySpec`
RestClient.RequestBodySpec.`body(T body, org.springframework.core.ParameterizedTypeReference<T> bodyType)`
Set the body of the request to the given `Object`.
`RestClient.RequestBodySpec`
RestClient.RequestBodySpec.`contentLength(long contentLength)`
Set the length of the body in bytes, as specified by the `Content-Length` header.
`RestClient.RequestBodySpec`
RestClient.RequestBodySpec.`contentType(MediaType contentType)`
Set the media type of the body, as specified by the `Content-Type` header.