ktor-server-core / io.ktor.routing / method

method

fun Route.method(method: HttpMethod, body: Route.() -> Unit): Route

Builds a route to match specified method