Protocol
Router
An object that can quickly look up previously registered routes.
protocol Router
Overview
See TrieRouter for concrete implementation.
Topics
Associated Types
associatedtype OutputType of value stored in routes. This will be returned by the router.
Instance Methods
func eraseToAnyRouter() -> AnyRouter<Self.Output>Wraps this router with a type eraser.func register(Self.Output, at: [PathComponent])Registers a newOutputto theRouterat a given path.func route(path: [String], parameters: inout Parameters) -> Self.Output?Fetches output for a specific route.