receive

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

Deprecated (with error)

Use `body` method instead

Replace with

this.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.


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

Deprecated (with error)

Use `body` method instead

Replace with

this.body(info)

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

Throws

If no transformation is found for the type info.