We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c74a1ab commit f6f6446Copy full SHA for f6f6446
Sources/Hummingbird/Middleware/Middleware.swift
@@ -26,6 +26,8 @@ public protocol ContextTransformingMiddlewareProtocol<Input, Output, InputContex
26
/// Middleware protocol with generic input, context and output types
27
public protocol MiddlewareProtocol<Input, Output, Context>: ContextTransformingMiddlewareProtocol where InputContext == OutputContext, Context == InputContext {
28
associatedtype Context
29
+ associatedtype InputContext = Context
30
+ associatedtype OutputContext = Context
31
}
32
33
/// Applied to `Request` before it is dealt with by the router. Middleware passes the processed request onto the next responder
0 commit comments