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)
Register a custom error function that gets invoked when the given raw status code
predicate applies.
|
WebClient.ResponseSpec |
WebClient.ResponseSpec.onStatus(Predicate<HttpStatus> statusPredicate,
Function<ClientResponse,reactor.core.publisher.Mono<? extends Throwable>> exceptionFunction)
Register a custom error function that gets invoked when the given
HttpStatus
predicate applies. |
WebClient.ResponseSpec |
WebClient.RequestHeadersSpec.retrieve()
Perform the HTTP request and retrieve the response body:
|