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

Method _send

starlette/middleware/errors.py:156–161  ·  starlette/middleware/errors.py::ServerErrorMiddleware._send
(message: Message)

Source from the content-addressed store, hash-verified

154 response_started = False
155
156 async def _send(message: Message) -> None:
157 nonlocal response_started, send
158
159 if message[class="st">"type"] == class="st">"http.response.start":
160 response_started = True
161 await send(message)
162
163 try:
164 await self.app(scope, receive, _send)

Callers 2

sendMethod · 0.80
send_push_promiseMethod · 0.80

Calls 1

sendFunction · 0.50

Tested by

no test coverage detected