Instance Methodhummingbird 2.1.0Hummingbird
add(_:)
Add middleware to group
MiddlewareGroup.swift:27@discardableResult func add(_ middleware: any MiddlewareProtocol<Request, Response, Context>) -> Self
This middleware will only be applied to endpoints added after this call.
Other members in extension
Instance members
func constructResponder(finalResponder: any HTTPResponder<Context>
) -> any HTTPResponder<Context> Construct responder chain from this middleware group