MCPcopy Index your code
hub / github.com/fastapi/fastapi / get_sub

Function get_sub

tests/test_dependency_yield_scope.py:108–114  ·  view source on GitHub ↗
(sessions: NamedSessionsDep)

Source from the content-addressed store, hash-verified

106
107@app.get("/sub")
108def get_sub(sessions: NamedSessionsDep) -> Any:
109 def iter_data():
110 yield json.dumps(
111 {"named_session_open": sessions[0].open, "session_open": sessions[1].open}
112 )
113
114 return StreamingResponse(iter_data())
115
116
117@app.get("/named-function-scope")

Callers

nothing calls this directly

Calls 1

iter_dataFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…