def method.names

bend-kit-router@0.2.0.0 · router.bend:237

import bend-kit-router@0.2.0.0/router.bend as Router
import Base

237def method.names(~A: Data, xs: List<&2, Handler<A>>) -> List<&2, String>:
238  match xs:
239    case Nil{}:
240      ["OPTIONS"]
241    case Handler{+method, pattern, ss, action} <> t:
242      method.prepend(String.eq(method, "GET"), method, method.names(~A, t))

Uses (5)

Used by (3)