Package | Description |
---|---|
org.springframework.test.web.reactive.server |
Support for testing Spring WebFlux server endpoints via
WebTestClient . |
org.springframework.web.reactive.function |
Provides a foundation for both the reactive client and server subpackages.
|
org.springframework.web.reactive.function.client |
Provides a reactive
WebClient
that builds on top of the
org.springframework.http.client.reactive reactive HTTP adapter layer. |
org.springframework.web.reactive.function.server |
Provides the types that make up Spring's functional web framework.
|
Modifier and Type | Method and Description |
---|---|
WebTestClient.RequestHeadersSpec<?> |
WebTestClient.RequestBodySpec.body(BodyInserter<?,? super ClientHttpRequest> inserter)
Set the body of the request to the given
BodyInserter . |
Modifier and Type | Interface and Description |
---|---|
static interface |
BodyInserters.FormInserter<T>
Extension of
BodyInserter that allows for adding form data or
multipart form data. |
static interface |
BodyInserters.MultipartInserter
Extension of
BodyInserters.FormInserter that allows for adding asynchronous parts. |
Modifier and Type | Method and Description |
---|---|
static <T> BodyInserter<T,ReactiveHttpOutputMessage> |
BodyInserters.empty()
Return an empty
BodyInserter that writes nothing. |
static <T extends org.reactivestreams.Publisher<DataBuffer>> |
BodyInserters.fromDataBuffers(T publisher)
Return a
BodyInserter that writes the given
Publisher<DataBuffer> to the body. |
static <T> BodyInserter<T,ReactiveHttpOutputMessage> |
BodyInserters.fromObject(T body)
Return a
BodyInserter that writes the given single object. |
static <T,P extends org.reactivestreams.Publisher<T>> |
BodyInserters.fromPublisher(P publisher,
java.lang.Class<T> elementClass)
Return a
BodyInserter that writes the given Publisher . |
static <T,P extends org.reactivestreams.Publisher<T>> |
BodyInserters.fromPublisher(P publisher,
ParameterizedTypeReference<T> typeReference)
Return a
BodyInserter that writes the given Publisher . |
static <T extends Resource> |
BodyInserters.fromResource(T resource)
Return a
BodyInserter that writes the given Resource . |
static <T,S extends org.reactivestreams.Publisher<ServerSentEvent<T>>> |
BodyInserters.fromServerSentEvents(S eventsPublisher)
Return a
BodyInserter that writes the given ServerSentEvent publisher. |
Modifier and Type | Method and Description |
---|---|
BodyInserter<?,? super ClientHttpRequest> |
ClientRequest.body()
Return the body inserter of this request.
|
Modifier and Type | Method and Description |
---|---|
WebClient.RequestHeadersSpec<?> |
WebClient.RequestBodySpec.body(BodyInserter<?,? super ClientHttpRequest> inserter)
Set the body of the request using the given body inserter.
|
ClientRequest.Builder |
ClientRequest.Builder.body(BodyInserter<?,? super ClientHttpRequest> inserter)
Set the body of the request to the given
BodyInserter . |
Modifier and Type | Method and Description |
---|---|
BodyInserter<T,? super ServerHttpResponse> |
EntityResponse.inserter()
Return the
BodyInserter that writes the entity to the output stream. |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<ServerResponse> |
ServerResponse.BodyBuilder.body(BodyInserter<?,? super ServerHttpResponse> inserter)
Set the body of the response to the given
BodyInserter and return it. |