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. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractClientHttpRequest
Base class for
ClientHttpRequest implementations. |
class |
ClientHttpRequestDecorator
Wraps another
ClientHttpRequest and delegates all methods to it. |
Modifier and Type | Method and Description |
---|---|
ClientHttpRequest |
ClientHttpRequestDecorator.getDelegate() |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<ClientHttpResponse> |
HttpComponentsClientHttpConnector.connect(HttpMethod method,
URI uri,
Function<? super ClientHttpRequest,reactor.core.publisher.Mono<Void>> requestCallback) |
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> |
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. |
Constructor and Description |
---|
ClientHttpRequestDecorator(ClientHttpRequest delegate) |
Modifier and Type | Class and Description |
---|---|
class |
MockClientHttpRequest
Mock implementation of
ClientHttpRequest . |
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 . |
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 |
---|---|
BodyInserter<?,? super ClientHttpRequest> |
ClientRequest.body()
Return the body inserter of this request.
|
Consumer<ClientHttpRequest> |
ClientRequest.httpRequest()
Return consumer(s) configured to access to the
ClientHttpRequest . |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
ClientRequest.writeTo(ClientHttpRequest request,
ExchangeStrategies strategies)
Write this request to the given
ClientHttpRequest . |
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 . |
S |
WebClient.RequestHeadersSpec.httpRequest(Consumer<ClientHttpRequest> requestConsumer)
Callback for access to the
ClientHttpRequest that in turn
provides access to the native request of the underlying HTTP library. |
ClientRequest.Builder |
ClientRequest.Builder.httpRequest(Consumer<ClientHttpRequest> requestConsumer)
Callback for access to the
ClientHttpRequest that in turn
provides access to the native request of the underlying HTTP library. |