receive

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

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

Throws


suspend fun HttpClientCall.receive(info: TypeInfo): Any

Tries to receive the payload of the response as a specific expected type provided in info. Returns response if info corresponds to HttpResponse.

Throws