Structure
Routes
The routes registered on an
Application.struct Routes
Overview
A view onto the application’s route storage rather than a container of its own, so that building routes through it — app.routes.grouped(...), app.routes.get(...) — registers them on the application itself. Every change goes through the application’s freeze, so routes and routing settings can only be configured before it starts.
Topics
Instance Properties
var all: [Route]var caseInsensitive: BoolDefault routing behavior ofDefaultResponderis case-sensitive; configure totrueprior to Application start handleConstantPathComponentsin a case-insensitive manner.var defaultMaxBodySize: ByteCountThe starting value for every request’smaxBodySize, unless a route or a middleware changes it.var description: String
Instance Methods
Relationships
Conforms To
RoutesBuilderSwift.CustomStringConvertibleSwift.SendableSwift.SendableMetatype