Server-side typesafe Spine schema usage • opensavvy.spine.server • TypedResponseScope
TypedResponseScope¶
Properties¶
body¶
call¶
abstract val call: ApplicationCall
endpoint¶
parameters¶
abstract val parameters: Params
Functions¶
fail¶
idOf¶
Extracts the identifier for a DynamicResource as it was provided by the client.
respond¶
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)