MCPcopy Index your code
hub / github.com/tensorflow/tensorboard / _create_wsgi_app

Method _create_wsgi_app

tensorboard/backend/application.py:323–337  ·  view source on GitHub ↗

Apply middleware to create the final WSGI app.

(self)

Source from the content-addressed store, hash-verified

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):

Callers 1

__init__Method · 0.95

Calls 1

_handling_errorsFunction · 0.85

Tested by

no test coverage detected