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 | Method and Description |
---|---|
WebClient.ResponseSpec |
WebClient.ResponseSpec.onRawStatus(IntPredicate statusCodePredicate,
Function<ClientResponse,reactor.core.publisher.Mono<? extends Throwable>> exceptionFunction)
Variant of
onStatus(Predicate, Function) that works with
raw status code values. |
WebClient.ResponseSpec |
WebClient.ResponseSpec.onStatus(Predicate<HttpStatus> statusPredicate,
Function<ClientResponse,reactor.core.publisher.Mono<? extends Throwable>> exceptionFunction)
Provide a function to map specific error status codes to an error
signal to be propagated downstream instead of the response.
|
WebClient.ResponseSpec |
WebClient.RequestHeadersSpec.retrieve()
Perform the HTTP request and retrieve the response body:
|