Package | Description |
---|---|
org.springframework.http.client.reactive |
Abstractions for reactive HTTP client support including
ClientHttpRequest and
ClientHttpResponse as well as a
ClientHttpConnector . |
org.springframework.mock.http.client.reactive |
Mock implementations of reactive HTTP client contracts.
|
org.springframework.test.web.reactive.server |
Support for testing Spring WebFlux server endpoints via
WebTestClient . |
org.springframework.test.web.servlet.client |
Support for testing Spring MVC applications via
WebTestClient
with MockMvc for server request
handling. |
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.client.support |
Classes supporting the
org.springframework.web.reactive.function.client package. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractClientHttpResponse
Base class for
ClientHttpResponse implementations. |
class |
ClientHttpResponseDecorator
Wraps another
ClientHttpResponse and delegates all methods to it. |
Modifier and Type | Method and Description |
---|---|
ClientHttpResponse |
ClientHttpResponseDecorator.getDelegate() |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<ClientHttpResponse> |
JettyClientHttpConnector.connect(HttpMethod method,
URI uri,
Function<? super ClientHttpRequest,reactor.core.publisher.Mono<Void>> requestCallback) |
reactor.core.publisher.Mono<ClientHttpResponse> |
ClientHttpConnector.connect(HttpMethod method,
URI uri,
Function<? super ClientHttpRequest,reactor.core.publisher.Mono<Void>> requestCallback)
Connect to the origin server using the given
HttpMethod and
URI and apply the given requestCallback when the HTTP
request of the underlying API can be initialized and written to. |
reactor.core.publisher.Mono<ClientHttpResponse> |
ReactorClientHttpConnector.connect(HttpMethod method,
URI uri,
Function<? super ClientHttpRequest,reactor.core.publisher.Mono<Void>> requestCallback) |
reactor.core.publisher.Mono<ClientHttpResponse> |
HttpComponentsClientHttpConnector.connect(HttpMethod method,
URI uri,
Function<? super ClientHttpRequest,reactor.core.publisher.Mono<Void>> requestCallback) |
Constructor and Description |
---|
ClientHttpResponseDecorator(ClientHttpResponse delegate) |
Modifier and Type | Class and Description |
---|---|
class |
MockClientHttpResponse
Mock implementation of
ClientHttpResponse . |
Modifier and Type | Interface and Description |
---|---|
interface |
MockServerClientHttpResponse
Simple
ClientHttpResponse extension that also exposes a result object
from the underlying mock server exchange for further assertions on the state
of the server response after the request is performed. |
Modifier and Type | Method and Description |
---|---|
ClientHttpResponse |
HttpHandlerConnector.FailureAfterResponseCompletedException.getCompletedResponse() |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<ClientHttpResponse> |
HttpHandlerConnector.connect(HttpMethod httpMethod,
URI uri,
Function<? super ClientHttpRequest,reactor.core.publisher.Mono<Void>> requestCallback) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<ClientHttpResponse> |
MockMvcHttpConnector.connect(HttpMethod method,
URI uri,
Function<? super ClientHttpRequest,reactor.core.publisher.Mono<Void>> requestCallback) |
Modifier and Type | Method and Description |
---|---|
<T> T |
ClientResponse.body(BodyExtractor<T,? super ClientHttpResponse> extractor)
Extract the body with the given
BodyExtractor . |
<T> reactor.core.publisher.Mono<ResponseEntity<reactor.core.publisher.Flux<T>>> |
WebClient.ResponseSpec.toEntityFlux(BodyExtractor<reactor.core.publisher.Flux<T>,? super ClientHttpResponse> bodyExtractor)
Variant of
WebClient.ResponseSpec.toEntityFlux(Class) with a BodyExtractor . |
Modifier and Type | Method and Description |
---|---|
<T> T |
ClientResponseWrapper.body(BodyExtractor<T,? super ClientHttpResponse> extractor) |