receiveNullable

inline suspend fun <T> ApplicationCall.receiveNullable(): 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> ApplicationCall.receiveNullable(typeInfo: TypeInfo): 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.