Apply middleware to create the final WSGI app.
(self)
| 321 | self._app = self._create_wsgi_app() |
| 322 | |
| 323 | def _create_wsgi_app(self): |
| 324 | """Apply middleware to create the final WSGI app.""" |
| 325 | app = self._route_request |
| 326 | for middleware in self._extra_middlewares: |
| 327 | app = middleware(app) |
| 328 | app = auth_context_middleware.AuthContextMiddleware( |
| 329 | app, self._auth_providers |
| 330 | ) |
| 331 | app = client_feature_flags.ClientFeatureFlagsMiddleware(app) |
| 332 | app = empty_path_redirect.EmptyPathRedirectMiddleware(app) |
| 333 | app = experiment_id.ExperimentIdMiddleware(app) |
| 334 | app = path_prefix.PathPrefixMiddleware(app, self._path_prefix) |
| 335 | app = security_validator.SecurityValidatorMiddleware(app) |
| 336 | app = _handling_errors(app) |
| 337 | return app |
| 338 | |
| 339 | @wrappers.Request.application |
| 340 | def _serve_plugin_entry(self, request): |
no test coverage detected