Class
TrieRouter
Generic
TrieRouter built using the “trie” tree algorithm.final class TrieRouter<Output> where Output : Sendable
Overview
Use register(_:at:) to register routes into the router. Use route(path:parameters:) to then fetch a matching route’s output.
See https://en.wikipedia.org/wiki/Trie for more information.
Topics
Structures
TrieRouter.ConfigurationAvailableTrieRoutercustomization options.
Instance Properties
descriptionA textual representation of this instance.
Instance Methods
route(path:parameters:)Routes a path, returning the best-matching output and collecting any dynamic parameters.
Relationships
Conforms To
RouterSwift.CustomStringConvertibleSwift.SendableSwift.SendableMetatype