Slide 18
Slide 18 text
Implementing WSGI Middleware
• WSGI application is a callable (e.g., a function)
• WSGI middleware can be implemented as a
higher-order function
WSGIApplication = Callable[
[WSGIEnvironment, StartResponse],
Iterable[bytes]]
WSGIMiddleware = Callable[
[WSGIApplication], WSGIApplication]