Athena::Routing::CompiledRoute
Represents an immutable snapshot of an ART::Route that exposes the Regex patterns and variables used to match/generate the route.
Constructors
new(static_prefix : String, regex : Regex, tokens : Array(ART::CompiledRoute::Token), path_variables : Set(String), host_regex : Regex | Nil = nil, host_tokens : Array(ART::CompiledRoute::Token) = Array(ART::CompiledRoute::Token).new, host_variables : Set(String) = Set(String).new, variables : Set(String) = Set(String).new)
SourceInstance methods
host_variables
Returns the names of the route parameters within the hostname pattern this route.