Skip to content

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

Instance Properties

  • description
    A textual representation of this instance.

Instance Methods

Relationships

Conforms To

  • Router
  • Swift.CustomStringConvertible
  • Swift.Sendable
  • Swift.SendableMetatype