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

Method simple_response

starlette/middleware/cors.py:152–154  ·  view source on GitHub ↗
(self, scope: Scope, receive: Receive, send: Send, request_headers: Headers)

Source from the content-addressed store, hash-verified

150 return PlainTextResponse("OK", status_code=200, headers=headers)
151
152 async def simple_response(self, scope: Scope, receive: Receive, send: Send, request_headers: Headers) -> None:
153 send = functools.partial(self.send, send=send, request_headers=request_headers)
154 await self.app(scope, receive, send)
155
156 async def send(self, message: Message, send: Send, request_headers: Headers) -> None:
157 if message["type"] != "http.response.start":

Callers 1

__call__Method · 0.95

Calls 1

appMethod · 0.45

Tested by

no test coverage detected