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

Method __call__

starlette/responses.py:163–170  ·  starlette/responses.py::Response.__call__
(self, scope: Scope, receive: Receive, send: Send)

Source from the content-addressed store, hash-verified

161 return wrapped
162
163 async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
164 if scope[class="st">"type"] == class="st">"websocket":
165 send = self._wrap_websocket_denial_send(send)
166 await send({class="st">"type": class="st">"http.response.start", class="st">"status": self.status_code, class="st">"headers": self.raw_headers})
167 await send({class="st">"type": class="st">"http.response.body", class="st">"body": self.body})
168
169 if self.background is not None:
170 await self.background()
171
172
173class HTMLResponse(Response):

Callers

nothing calls this directly

Calls 3

backgroundMethod · 0.80
sendFunction · 0.50

Tested by

no test coverage detected