receiveNullable

inline suspend fun <reified 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. Receive operations for the same call must be sequential and must not be started from an ApplicationReceivePipeline interceptor.

Report a problem

Return

instance of T received from this call.

Throws

when content cannot be transformed to the requested type.

when another receive operation is in progress for this call.