接口的使用
org.springframework.web.reactive.function.client.WebClient.ResponseSpec
使用WebClient.ResponseSpec的程序包 程序包 说明 org.springframework.web.reactive.function.client Provides a reactiveWebClient
that builds on top of theorg.springframework.http.client.reactive
reactive HTTP adapter layer.org.springframework.web.reactive.function.client中WebClient.ResponseSpec的使用
返回WebClient.ResponseSpec的org.springframework.web.reactive.function.client中的方法 修饰符和类型 方法 说明 WebClient.ResponseSpec
WebClient.ResponseSpec. onRawStatus(IntPredicate statusCodePredicate, Function<ClientResponse,reactor.core.publisher.Mono<? extends Throwable>> exceptionFunction)
Variant ofonStatus(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: