Package | Description |
---|---|
org.springframework.mock.http.server.reactive |
Mock implementations of reactive HTTP server contracts.
|
org.springframework.mock.web.server |
Mock implementations of Spring's reactive server web API abstractions.
|
Modifier and Type | Method and Description |
---|---|
MockServerHttpRequest |
MockServerHttpRequest.BodyBuilder.body(Publisher<? extends DataBuffer> body)
Set the body of the request and build it.
|
MockServerHttpRequest |
MockServerHttpRequest.BodyBuilder.body(String body)
Set the body of the request and build it.
|
MockServerHttpRequest |
MockServerHttpRequest.BaseBuilder.build()
Builds the request with no body.
|
Modifier and Type | Method and Description |
---|---|
static MockServerWebExchange.Builder |
MockServerWebExchange.builder(MockServerHttpRequest request)
Create a
MockServerWebExchange.Builder starting with the given mock request. |
static MockServerWebExchange |
MockServerWebExchange.from(MockServerHttpRequest request)
Create a
MockServerWebExchange from the given mock request. |
Constructor and Description |
---|
Builder(MockServerHttpRequest request) |