awaitEntity

inline suspend fun <T : Any> ClientResponse.awaitEntity(): ResponseEntity<T>

Coroutines variant of ClientResponse.toEntity.

Author

Sebastien Deleuze

Since

5.2


suspend fun <T : Any> ClientResponse.awaitEntity(clazz: KClass<T>): ResponseEntity<T>

KClass coroutines variant of ClientResponse.toEntity. Please consider awaitEntity<Foo> variant if possible.

Author

Igor Manushin

Since

5.3