Vapor Documentation

Class Routes

public final class Routes: RoutesBuilder, CustomStringConvertible  
%271 Routes Routes CustomStringConvertible CustomStringConvertible Routes->CustomStringConvertible RoutesBuilder RoutesBuilder Routes->RoutesBuilder

Conforms To

RoutesBuilder
CustomStringConvertible

Initializers

init()

public init()  

Properties

case​Insenstive

@available(*, deprecated, renamed: "caseInsensitive")
    public var caseInsenstive: Bool  

all

public var all: [Route] 

default​Max​Body​Size

public var defaultMaxBodySize: ByteCount

Default value used by HTTPBodyStreamStrategy.collect when maxSize is nil.

case​Insensitive

public var caseInsensitive: Bool

Default routing behavior of DefaultResponder is case-sensitive; configure to true prior to Application start handle Constant PathComponents in a case-insensitive manner.

description

public var description: String  

Methods

add(_:​)

public func add(_ route: Route)