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

Function endpoint

tests/test_concurrency.py:39–40  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

37 ctxvar.set(b"data")
38
39 def endpoint(request: Request) -> Response:
40 return Response(ctxvar.get())
41
42 app = Starlette(routes=[Route("/", endpoint)])
43 client = test_client_factory(app)

Callers 1

appFunction · 0.70

Calls 2

ResponseClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected