Vapor Documentation Beta

Class Route

public final class Route: CustomStringConvertible
%3 Route Route CustomStringConvertible CustomStringConvertible Route->CustomStringConvertible

Conforms To

CustomStringConvertible

Initializers

init(method:​path:​responder:​request​Type:​response​Type:​)

public init(method: HTTPMethod, path: [PathComponent], responder: Responder, requestType: Any.Type, responseType: Any.Type)

Properties

method

var method: HTTPMethod

path

var path: [PathComponent]

responder

var responder: Responder

request​Type

var requestType: Any.Type

response​Type

var responseType: Any.Type

user​Info

var userInfo: [AnyHashable: Any]

description

var description: String

Methods

description(_:​)

@discardableResult public func description(_ string: String) -> Route