receive

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

Receives content for this request.

Return

instance of T received from this call.

Throws

when content cannot be transformed to the requested type.


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

Receives content for this request.

Return

instance of T received from this call.

Parameters

type

instance of KClass specifying type to be received.

Throws

when content cannot be transformed to the requested type.


suspend fun <T : Any> ApplicationCall.receive(typeInfo: <ERROR CLASS>): T

Receives content for this request.

Return

instance of T received from this call.

Parameters

typeInfo

instance specifying type to be received.

Throws

when content cannot be transformed to the requested type.