インターフェースの使用
org.springframework.web.reactive.function.client.WebClient.ResponseSpec
org.springframework.web.reactive.function.client 内の WebClient.ResponseSpec 使用
修飾子と型メソッド説明WebClient.ResponseSpec.onRawStatus
(IntPredicateSE statusCodePredicate, FunctionSE<ClientResponse, reactor.core.publisher.Mono<? extends ThrowableSE>> exceptionFunction) 生のステータスコード値を処理するonStatus(Predicate, Function)
のバリアント。WebClient.ResponseSpec.onStatus
(PredicateSE<HttpStatusCode> statusPredicate, FunctionSE<ClientResponse, reactor.core.publisher.Mono<? extends ThrowableSE>> exceptionFunction) 特定のエラーステータスコードをエラーシグナルにマップして、レスポンスではなく下流に伝搬する関数を提供します。WebClient.RequestHeadersSpec.retrieve()
レスポンスを抽出する方法の宣言に進みます。