spring-framework
5.3.39

# awaitExchange

suspend fun WebClient.RequestHeadersSpec<out WebClient.RequestHeadersSpec<*>>.awaitExchange(): ClientResponse
Content copied to clipboard

Coroutines variant of WebClient.RequestHeadersSpec.exchange.

#### Author

Sebastien Deleuze

#### Since

5.2

suspend fun <T : Any> WebClient.RequestHeadersSpec<out WebClient.RequestHeadersSpec<*>>.awaitExchange(responseHandler: suspend (ClientResponse) -> T): T
Content copied to clipboard

Coroutines variant of WebClient.RequestHeadersSpec.exchangeToMono.

#### Author

Sebastien Deleuze

#### Since

5.3