receiveOrNull
Receives content for this request.
Return
instance of T received from this call, or null
if content cannot be transformed to the requested type.
suspend fun <T : Any> ApplicationCall.receiveOrNull(typeInfo: <ERROR CLASS>): T?
Content copied to clipboard
Receives content for this request.
Return
instance of T received from this call, or null
if content cannot be transformed to the requested type.
Parameters
typeInfo
type to be received.
Receives content for this request.
Return
instance of T received from this call, or null
if content cannot be transformed to the requested type..
Parameters
type
instance of KClass
specifying type to be received.