class

Trie::Node

Inherits Reference < Object

Instance methods

add_route(path : String, handler : Handler, methods : Set(String) = Set {"GET"})
Source
children
Source
children=(children : Array(Node))
Source
dump(indent : Int32 = 0)
Source
handlers
Source
handlers=(handlers : Hash(String, Handler))
Source
param=(value : Bool)
Source
param?
Source
param_name
Source
param_name=(param_name : String)
Source
path
Source
path=(path : String)
Source
priority
Source
priority=(priority : Int32)
Source
search(path : String) : MatchResult

Search for a route matching the given path Returns a MatchResult containing the matched node and extracted parameters

Source