spring-framework / org.springframework.web.reactive.function.client / awaitExchangeOrNull

awaitExchangeOrNull

suspend fun <T : Any> RequestHeadersSpec<out RequestHeadersSpec<*>>.awaitExchangeOrNull(responseHandler: suspend (ClientResponse) -> T?): T?

Variant of WebClient.RequestHeadersSpec.awaitExchange that allows a nullable return

Since
5.3.8