Vapor Documentation Beta

Class Routes

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

Conforms To

RoutesBuilder
CustomStringConvertible

Initializers

init()

public init()

Properties

case​Insenstive

var caseInsenstive: Bool

all

var all: [Route]

default​Max​Body​Size

var defaultMaxBodySize: ByteCount

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

case​Insensitive

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

var description: String

Methods

add(_:​)

public func add(_ route: Route)