receiveNullable

inline suspend fun <T> ApplicationCall.receiveNullable(): T?(source)

Deprecated

Use 'receive<T>()' with nullable T instead

Replace with

import io.ktor.server.request.receive
this.receive<T>()

Receives content for this request.

Report a problem

Return

instance of T received from this call.

Throws

when content cannot be transformed to the requested type.