# Uses of Interface
org.springframework.mock.http.server.reactive.MockServerHttpRequest.BodyBuilder

Packages that use MockServerHttpRequest.BodyBuilder
Package
Description
org.springframework.mock.http.server.reactive
Mock implementations of reactive HTTP server contracts.

## Uses of MockServerHttpRequest.BodyBuilder in org.springframework.mock.http.server.reactive

Methods in org.springframework.mock.http.server.reactive that return MockServerHttpRequest.BodyBuilder
Modifier and Type
Method
Description
`MockServerHttpRequest.BodyBuilder`
MockServerHttpRequest.BodyBuilder.`contentLength(long contentLength)`
Set the length of the body in bytes, as specified by the `Content-Length` header.
`MockServerHttpRequest.BodyBuilder`
MockServerHttpRequest.BodyBuilder.`contentType(org.springframework.http.MediaType contentType)`
Set the media type of the body, as specified by the `Content-Type` header.
`static MockServerHttpRequest.BodyBuilder`
MockServerHttpRequest.`method(String httpMethod, String uri, Object... vars)`
Deprecated.
as of Spring Framework 6.0 in favor of `MockServerHttpRequest.method(HttpMethod, String, Object...)`
`static MockServerHttpRequest.BodyBuilder`
MockServerHttpRequest.`method(org.springframework.http.HttpMethod method, String uri, Object... vars)`
Alternative to `MockServerHttpRequest.method(HttpMethod, URI)` that accepts a URI template.
`static MockServerHttpRequest.BodyBuilder`
MockServerHttpRequest.`method(org.springframework.http.HttpMethod method, URI url)`
Create a builder with the given HTTP method and a `URI`.
`static MockServerHttpRequest.BodyBuilder`
MockServerHttpRequest.`patch(String urlTemplate, Object... uriVars)`
HTTP PATCH variant.
`static MockServerHttpRequest.BodyBuilder`
MockServerHttpRequest.`post(String urlTemplate, Object... uriVars)`
HTTP POST variant.
`static MockServerHttpRequest.BodyBuilder`
MockServerHttpRequest.`put(String urlTemplate, Object... uriVars)`
HTTP PUT variant.