receive

inline suspend fun <reified T : Any> ApplicationCall.receive(): T

Receives content for this request.

Exceptions

ContentTransformationException - when content cannot be transformed to the requested type.

Return instance of T received from this call.

suspend fun <T : Any> ApplicationCall.receive(
    type: KClass<T>
): T

Receives content for this request.

Parameters

type - instance of KClass specifying type to be received.

Exceptions

ContentTransformationException - when content cannot be transformed to the requested type.

Return instance of T received from this call.