HBResponder
public protocol HBResponder
Protocol for object that produces a response given a request
This is the core protocol for Hummingbird. It defines an object that can respond to a request.
-
Return EventLoopFuture that will be fulfilled with response to the request supplied
Declaration
Swift
func respond(to request: HBRequest) -> EventLoopFuture<HBResponse>