Uses of Interface
org.springframework.http.client.reactive.ClientHttpRequest
Package
Description
Abstractions for reactive HTTP client support including
ClientHttpRequest
and
ClientHttpResponse
as well as a
ClientHttpConnector
.Mock implementations of reactive HTTP client contracts.
Support for testing Spring WebFlux server endpoints via
WebTestClient
.Support for testing Spring MVC applications via
WebTestClient
with MockMvc
for server request
handling.Provides a reactive
WebClient
that builds on top of the
org.springframework.http.client.reactive
reactive HTTP adapter layer.-
Uses of ClientHttpRequest in org.springframework.http.client.reactive
Modifier and TypeClassDescriptionclass
Base class forClientHttpRequest
implementations.class
Wraps anotherClientHttpRequest
and delegates all methods to it.Modifier and TypeMethodDescriptionreactor.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 givenHttpMethod
andURI
and apply the givenrequestCallback
when the HTTP request of the underlying API can be initialized and written to.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>
JdkClientHttpConnector.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>
ReactorClientHttpConnector.connect
(HttpMethod method, URI uri, Function<? super ClientHttpRequest, reactor.core.publisher.Mono<Void>> requestCallback) reactor.core.publisher.Mono<ClientHttpResponse>
ReactorNetty2ClientHttpConnector.connect
(HttpMethod method, URI uri, Function<? super ClientHttpRequest, reactor.core.publisher.Mono<Void>> requestCallback) -
Uses of ClientHttpRequest in org.springframework.mock.http.client.reactive
-
Uses of ClientHttpRequest in org.springframework.test.web.reactive.server
Modifier and TypeMethodDescriptionWebTestClient.RequestBodySpec.body
(BodyInserter<?, ? super ClientHttpRequest> inserter) Set the body of the request to the givenBodyInserter
.reactor.core.publisher.Mono<ClientHttpResponse>
HttpHandlerConnector.connect
(HttpMethod httpMethod, URI uri, Function<? super ClientHttpRequest, reactor.core.publisher.Mono<Void>> requestCallback) -
Uses of ClientHttpRequest in org.springframework.test.web.servlet.client
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<ClientHttpResponse>
MockMvcHttpConnector.connect
(HttpMethod method, URI uri, Function<? super ClientHttpRequest, reactor.core.publisher.Mono<Void>> requestCallback) -
Uses of ClientHttpRequest in org.springframework.web.reactive.function.client
Modifier and TypeMethodDescriptionBodyInserter<?,
? super ClientHttpRequest> ClientRequest.body()
Return the body inserter of this request.ClientRequest.httpRequest()
Return consumer(s) configured to access to theClientHttpRequest
.Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
ClientRequest.writeTo
(ClientHttpRequest request, ExchangeStrategies strategies) Write this request to the givenClientHttpRequest
.Modifier and TypeMethodDescriptionClientRequest.Builder.body
(BodyInserter<?, ? super ClientHttpRequest> inserter) Set the body of the request to the givenBodyInserter
.WebClient.RequestBodySpec.body
(BodyInserter<?, ? super ClientHttpRequest> inserter) Set the body of the request using the given body inserter.ClientRequest.Builder.httpRequest
(Consumer<ClientHttpRequest> requestConsumer) Callback for access to theClientHttpRequest
that in turn provides access to the native request of the underlying HTTP library.WebClient.RequestHeadersSpec.httpRequest
(Consumer<ClientHttpRequest> requestConsumer) Callback for access to theClientHttpRequest
that in turn provides access to the native request of the underlying HTTP library.