HBCallbackResponder
public struct HBCallbackResponder : HBResponder
Responder that calls supplied closure
-
Undocumented
Declaration
Swift
public init(callback: @escaping (HBRequest) -> EventLoopFuture<HBResponse>)
-
Return EventLoopFuture that will be fulfilled with response to the request supplied
Declaration
Swift
public func respond(to request: HBRequest) -> EventLoopFuture<HBResponse>