ktor-client-core / io.ktor.client.call / HttpClientCall / body

body

suspend fun body(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.

Exceptions

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

DoubleReceiveException - If already called body.