MCPcopy
hub / github.com/fastapi/fastapi / endpoint

Function endpoint

tests/test_response_dependency.py:23–24  ·  view source on GitHub ↗
(response: Annotated[Response, Depends(modify_response)])

Source from the content-addressed store, hash-verified

21
22 @app.get("/")
23 def endpoint(response: Annotated[Response, Depends(modify_response)]):
24 return {"status": "ok"}
25
26 client = TestClient(app)
27 resp = client.get("/")

Callers

nothing calls this directly

Calls 2

DependsClass · 0.90
add_taskMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…