MCPcopy Create free account
hub / github.com/encode/starlette / app

Function app

tests/middleware/test_https_redirect.py:71–73  ·  view source on GitHub ↗
(scope: Scope, receive: Receive, send: Send)

Source from the content-addressed store, hash-verified

69 middleware = HTTPSRedirectMiddleware(PlainTextResponse("OK"))
70
71 async def app(scope: Scope, receive: Receive, send: Send) -> None:
72 scope.pop("server", None)
73 await middleware(scope, receive, send)
74
75 client = test_client_factory(app)
76 response = client.get("/", headers={"host": host}, follow_redirects=False)

Callers

nothing calls this directly

Calls 1

popMethod · 0.45

Tested by

no test coverage detected