Package | Description |
---|---|
org.springframework.test.web.reactive.server |
Support for testing Spring WebFlux server endpoints via
WebTestClient . |
Modifier and Type | Interface and Description |
---|---|
static interface |
WebTestClient.RequestBodyUriSpec
Specification for providing the body and the URI of a request.
|
Modifier and Type | Method and Description |
---|---|
WebTestClient.RequestBodySpec |
WebTestClient.RequestBodySpec.contentLength(long contentLength)
Set the length of the body in bytes, as specified by the
Content-Length header. |
WebTestClient.RequestBodySpec |
WebTestClient.RequestBodySpec.contentType(MediaType contentType)
Set the media type of the body, as specified
by the
Content-Type header. |