Vapor Documentation

Class Route

public final class Route: CustomStringConvertible  
%739 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

public var method: HTTPMethod

path

public var path: [PathComponent] 

responder

public var responder: Responder

request​Type

public var requestType: Any.Type

response​Type

public var responseType: Any.Type

user​Info

public var userInfo: [AnyHashable: Any] 

description

public var description: String  

Methods

description(_:​)

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