patch

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

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

Class T must be annotated with Location.

Parameters

body

receives an instance of typed location T as first parameter.