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

Function homepage

tests/test_testclient.py:58–61  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

56 """
57
58 def homepage(request: Request) -> JSONResponse:
59 client = test_client_factory(mock_service)
60 response = client.get("/")
61 return JSONResponse(response.json())
62
63 app = Starlette(routes=[Route("/", endpoint=homepage)])
64

Callers

nothing calls this directly

Calls 6

JSONResponseClass · 0.90
ResponseClass · 0.90
test_client_factoryFunction · 0.85
jsonMethod · 0.80
getMethod · 0.45
getlistMethod · 0.45

Tested by

no test coverage detected