The WSGI server calls the Flask application object as the WSGI application. This calls :meth:`wsgi_app`, which can be wrapped to apply middleware.
(
self, environ: WSGIEnvironment, start_response: StartResponse
)
| 1527 | ctx.pop(error) |
| 1528 | |
| 1529 | def __call__( |
| 1530 | self, environ: WSGIEnvironment, start_response: StartResponse |
| 1531 | ) -> cabc.Iterable[bytes]: |
| 1532 | """The WSGI server calls the Flask application object as the |
| 1533 | WSGI application. This calls :meth:`wsgi_app`, which can be |
| 1534 | wrapped to apply middleware. |
| 1535 | """ |
| 1536 | return self.wsgi_app(environ, start_response) |