MCPcopy
hub / github.com/encode/starlette / get_middleware_factory

Function get_middleware_factory

tests/test_applications.py:539–540  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

537 return _app
538
539 def get_middleware_factory() -> Callable[[ASGIApp, str], ASGIApp]:
540 return _middleware_factory
541
542 app = Starlette()
543 app.add_middleware(_middleware_factory, arg="foo")

Callers 1

test_middleware_factoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected