Protocol
RouterBuilder
A protocol for building routers by registering routes with their associated outputs.
protocol RouterBuilder : Sendable
Overview
RouterBuilder provides a common interface for accumulating route registrations and building them into a complete router.
Topics
Associated Types
associatedtype OutputType of value stored in routes.associatedtype Router : RouterTheRouterthat gets built by this builder.
Instance Methods
func build() -> Self.RouterConstructs a newRouterbased on the routes registered to this builder.func register(Self.Output, at: [PathComponent]) throwsRegisters a newOutputto theRouterBuilderat a given path.
Relationships
Inherits From
Swift.SendableSwift.SendableMetatype