awaitBodyOrNull
Nullable coroutines variant of ClientResponse.bodyToMono.
Author
Sebastien Deleuze
Since
5.2
suspend fun <T : Any> ClientResponse.awaitBodyOrNull(clazz: KClass<T>): T?
Content copied to clipboard
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?
Content copied to clipboard
Coroutines variant of WebClient.ResponseSpec.bodyToMono.
Author
Valentin Shakhov
Since
5.3.6