ktor-server-core / io.ktor.response / respond

respond

@JvmName("respondWithType") inline suspend fun <reified T : Any> ApplicationCall.respond(message: T): Unit
inline suspend fun ApplicationCall.respond(message: Any): Unit
Deprecated: This method doesn't save type of the response. This can lead to error in serialization

Sends a message as a response

@JvmName("respondWithType") inline suspend fun <reified T : Any> ApplicationCall.respond(status: HttpStatusCode, message: T): Unit
inline suspend fun ApplicationCall.respond(status: HttpStatusCode, message: Any): Unit
Deprecated: This method doesn't save type of the response. This can lead to error in serialization

Sets status and sends a message as a response