Package | Description |
---|---|
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 | Interface and Description |
---|---|
static interface |
WebClient.RequestHeadersSpec<S extends WebClient.RequestHeadersSpec<S>>
Contract for specifying request headers leading up to the exchange.
|
static interface |
WebClient.RequestHeadersUriSpec<S extends WebClient.RequestHeadersSpec<S>>
Contract for specifying request headers and URI for a request.
|
static interface |
WebClient.UriSpec<S extends WebClient.RequestHeadersSpec<?>>
Contract for specifying the URI for a request.
|
Modifier and Type | Interface and Description |
---|---|
static interface |
WebClient.RequestBodySpec
Contract for specifying request headers and body leading up to the exchange.
|
static interface |
WebClient.RequestBodyUriSpec
Contract for specifying request headers, body and URI for a request.
|
static interface |
WebClient.RequestHeadersUriSpec<S extends WebClient.RequestHeadersSpec<S>>
Contract for specifying request headers and URI for a 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.
|
WebClient.RequestHeadersSpec<?> |
WebClient.RequestBodySpec.body(Object producer,
Class<?> elementClass)
Variant of
WebClient.RequestBodySpec.body(Publisher, Class) that allows using any
producer that can be resolved to Publisher via
ReactiveAdapterRegistry . |
WebClient.RequestHeadersSpec<?> |
WebClient.RequestBodySpec.body(Object producer,
ParameterizedTypeReference<?> elementTypeRef)
Variant of
WebClient.RequestBodySpec.body(Publisher, ParameterizedTypeReference) that
allows using any producer that can be resolved to Publisher
via ReactiveAdapterRegistry . |
<T,P extends org.reactivestreams.Publisher<T>> |
WebClient.RequestBodySpec.body(P publisher,
Class<T> elementClass)
Shortcut for
WebClient.RequestBodySpec.body(BodyInserter) with a
Publisher inserter. |
<T,P extends org.reactivestreams.Publisher<T>> |
WebClient.RequestBodySpec.body(P publisher,
ParameterizedTypeReference<T> elementTypeRef)
Variant of
WebClient.RequestBodySpec.body(Publisher, Class) that allows providing
element type information with generics. |
WebClient.RequestHeadersSpec<?> |
WebClient.RequestBodySpec.bodyValue(Object body)
Shortcut for
WebClient.RequestBodySpec.body(BodyInserter) with a
value inserter. |
WebClient.RequestHeadersSpec<?> |
WebClient.RequestBodySpec.syncBody(Object body)
Deprecated.
as of Spring Framework 5.2 in favor of
WebClient.RequestBodySpec.bodyValue(Object) |
Modifier and Type | Method and Description |
---|---|
WebClient.Builder |
WebClient.Builder.defaultRequest(Consumer<WebClient.RequestHeadersSpec<?>> defaultRequest)
Provide a consumer to customize every request being built.
|