receive

inline suspend fun <reified T> HttpClientCall.receive(): T
inline suspend fun <reified T> HttpResponse.receive(): T

Tries to receive the payload of the response as an specific type T.

Exceptions

NoTransformationFoundException - If no transformation is found for the type T.

DoubleReceiveException - If already called receive.