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

If no transformation is found for the type T.

If already called body.


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

If no transformation is found for the type info typeInfo.

If already called body.