awaitBodyOrNull

inline suspend fun <T : Any> ClientResponse.awaitBodyOrNull(): T?

Nullable coroutines variant of ClientResponse.bodyToMono.

Author

Sebastien Deleuze

Since

5.2


suspend fun <T : Any> ClientResponse.awaitBodyOrNull(clazz: KClass<T>): T?

KClass nullable coroutines variant of ClientResponse.bodyToMono. Please consider awaitBodyOrNull<Foo> variant if possible.

Author

Igor Manushin

Since

5.3


inline suspend fun <T : Any> WebClient.ResponseSpec.awaitBodyOrNull(): T?

Coroutines variant of WebClient.ResponseSpec.bodyToMono.

Author

Valentin Shakhov

Since

5.3.6