A simpler way IMHO: – HttpMethodRouteSelector acc...
# ktor
g
A simpler way IMHO: – HttpMethodRouteSelector accepts a collection of methods to match (as you said), - modify Route.method like this
Route.method(vararg methods: HttpMethod,
It allows then to write :
Copy code
method(HttpMethod.Get, HttpMethod.Head) {
        route(”/foo") {
            handle {...