body

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

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

Throws


suspend fun <T> HttpResponse.body(typeInfo: TypeInfo): T

Tries to receive the payload of the response as a specific type T described in typeInfo.

Throws