head

inline fun <T : Any> Routing.head(noinline body: suspend RoutingContext.(T) -> Unit): Routing

Registers a typed handler body for a HEAD resource defined by the T class.

A class T must be annotated with io.ktor.resources.Resource.

Parameters

body

receives an instance of the typed resource T as the first parameter.