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

Method __init__

starlette/middleware/base.py:28–32  ·  view source on GitHub ↗
(self, scope: Scope, receive: Receive)

Source from the content-addressed store, hash-verified

26 """
27
28 def __init__(self, scope: Scope, receive: Receive):
29 super().__init__(scope, receive)
30 self._wrapped_rcv_disconnected = False
31 self._wrapped_rcv_consumed = False
32 self._wrapped_rc_stream = self.stream()
33
34 async def wrapped_receive(self) -> Message:
35 # wrapped_rcv state 1: disconnected

Callers

nothing calls this directly

Calls 1

streamMethod · 0.80

Tested by

no test coverage detected