We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31f99db commit c74a1abCopy full SHA for c74a1ab
Sources/Hummingbird/Middleware/Middleware.swift
@@ -55,7 +55,7 @@ public protocol MiddlewareProtocol<Input, Output, Context>: ContextTransformingM
55
/// ```
56
57
/// Middleware protocol with Request as input and Response as output
58
-public protocol RouterMiddleware<Context>: MiddlewareProtocol where Input == Request, Output == Response {}
+public protocol RouterMiddleware<Context>: MiddlewareProtocol where Input == Request, Output == Response, InputContext == Context, OutputContext == Context {}
59
60
struct MiddlewareResponder<Context>: HTTPResponder {
61
let middleware: any MiddlewareProtocol<Request, Response, Context>
0 commit comments