Protocol
RoutesBuilder
protocol RoutesBuilder
Topics
Instance Methods
func add(Route)func delete(_:use:)func get(_:use:)func group(_:configure:)Creates a newRouterwrapped in the supplied array ofMiddleware.func grouped(_:)Creates a newRouterwrapped in the supplied array ofMiddleware.func on(_:_:body:use:)func patch(_:use:)func post(_:use:)func put(_:use:)func register(collection: any RouteCollection) throwsRegisters all of the routes in the group to this router.func responseCompression(HTTPHeaders.ResponseCompression, force: Bool) -> any RoutesBuilderOverride the response compression settings for a route.func webSocket(_:maxFrameSize:shouldUpgrade:onUpgrade:)Adds a route for opening a web socket connection