接口的使用
org.springframework.web.reactive.function.client.WebClient.ResponseSpec
使用WebClient.ResponseSpec的程序包 程序包 说明 org.springframework.web.reactive.function.client Provides a reactiveWebClientthat builds on top of theorg.springframework.http.client.reactivereactive HTTP adapter layer.org.springframework.web.reactive.function.client中WebClient.ResponseSpec的使用
返回WebClient.ResponseSpec的org.springframework.web.reactive.function.client中的方法 修饰符和类型 方法 说明 WebClient.ResponseSpecWebClient.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.ResponseSpecWebClient.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.ResponseSpecWebClient.RequestHeadersSpec. retrieve()Perform the HTTP request and retrieve the response body: