method

fun Route.method(method: <ERROR CLASS>, body: Route.() -> Unit): Route

Builds a route to match the specified HTTP method.

See also