Class
TrieRouter
Generic
TrieRouter built using the “trie” tree algorithm.final class TrieRouter<Output>
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
Initializers
init(_:options:)Create a newTrieRouter.init(_:options:logger:)Create a newTrieRouter.
Instance Properties
descriptionA textual representation of this instance.loggerConfigured logger.optionsConfigured options such as case-sensitivity.
Instance Methods
register(_:at:)Registers a new route to this router at a given path.route(path:parameters:)Routes a path, returning the best-matching output and collecting any dynamic parameters.
Enumerations
TrieRouter.ConfigurationOptionAvailableTrieRoutercustomization options.
Relationships
Conforms To
RouterSwift.CustomStringConvertible