inline suspend fun <reified T : Any> ApplicationCall.receive(): T
Receives content for this request.
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
suspend fun <T : Any> ApplicationCall.receive(type: KType): T
Receives content for this request.
type
- instance of KClass
specifying type to be received.
ContentTransformationException
- when content cannot be transformed to the requested type.
Return
instance of T received from this call.