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

Function inner

tests/test_testclient.py:200–208  ·  tests/test_testclient.py::inner
(receive: Receive, send: Send)

Source from the content-addressed store, hash-verified

198def test_testclient_asgi2(test_client_factory: TestClientFactory) -> None:
199 def app(scope: Scope) -> ASGIInstance:
200 async def inner(receive: Receive, send: Send) -> None:
201 await send(
202 {
203 class="st">"type": class="st">"http.response.start",
204 class="st">"status": 200,
205 class="st">"headers": [[bclass="st">"content-type", bclass="st">"text/plain"]],
206 }
207 )
208 await send({class="st">"type": class="st">"http.response.body", class="st">"body": bclass="st">"Hello, world!"})
209
210 return inner
211

Callers

nothing calls this directly

Calls 1

sendFunction · 0.70

Tested by

no test coverage detected