TypedResponseScope

Properties

Link copied to clipboard
abstract val body: In
Link copied to clipboard
abstract val call: ApplicationCall
Link copied to clipboard
abstract val parameters: Params

Functions

Link copied to clipboard
open fun idOf(resource: DynamicResource<*>): String

Extracts the identifier for a DynamicResource as it was provided by the client.

Link copied to clipboard
suspend fun TypedResponseScope<*, Unit, *>.respond(code: HttpStatusCode = HttpStatusCode.NoContent)
inline suspend fun <Out : Any> TypedResponseScope<*, Out, *>.respond(body: Out, code: HttpStatusCode = if (body == Unit) HttpStatusCode.NoContent else HttpStatusCode.OK)