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

Class WSGIMiddleware

starlette/middleware/wsgi.py:78–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76
77
78class WSGIMiddleware:
79 def __init__(self, app: Callable[..., Any]) -> None:
80 self.app = app
81
82 async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
83 assert scope["type"] == "http"
84 responder = WSGIResponder(self.app, scope)
85 await responder(receive, send)
86
87
88class WSGIResponder:

Callers 4

test_wsgi_getFunction · 0.90
test_wsgi_postFunction · 0.90
test_wsgi_exceptionFunction · 0.90
test_wsgi_exc_infoFunction · 0.90

Calls

no outgoing calls

Tested by 4

test_wsgi_getFunction · 0.72
test_wsgi_postFunction · 0.72
test_wsgi_exceptionFunction · 0.72
test_wsgi_exc_infoFunction · 0.72