ktor-locations / io.ktor.locations / io.ktor.routing.Route / put

put

inline fun <reified T : Any> Route.put(noinline body: suspend PipelineContext<Unit, ApplicationCall>.(T) -> Unit): Route

Registers a typed handler body for a PUT location defined by class T.

Class T must be annotated with Location.

Parameters

body - receives an instance of typed location T as first parameter.