const classdraft::Route
sys::Obj draft::Route
Route models how a URI pattern gets routed to a method handler. Example patterns:
Pattern         Uri           Args
--------------  ------------  ----------
"/"             `/`           [:]
"/foo/{bar}"    `/foo/12`     ["bar":"12"]
"/foo/*"        `/foo/x/y/z`  [:]
"/foo/{bar}/*"  `/foo/x/y/z`  ["bar":"x"]- handler
 const Method handlerMethod handler for this route. If this method is an instance method, a new intance of the parent type is created before invoking the method.
- make
 new make(Str pattern, Str method, Method handler)Constructor.
- match
 [Str:Str]? match(Uri uri, Str method)Match this route against the request arguments. If route can be be matched, return the pattern arguments, or return
nullfor no match.- method
 const Str methodHTTP method used for this route.
- pattern
 const Str patternURI pattern for this route.
- toStr
 virtual override Str toStr()toStris pattern.