get
inline fun <T : Any> <ERROR CLASS>.get(noinline body: suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(T) -> Unit): <ERROR CLASS>
Content copied to clipboard
Registers a typed handler body for a GET
resource defined by the T class.
A class Tmust be annotated with io.ktor.resources.Resource.
Parameters
body
receives an instance of the typed resource T as the first parameter.