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

Function get_named_function_scope

tests/test_dependency_yield_scope.py:118–124  ·  view source on GitHub ↗
(sessions: NamedSessionsFuncDep)

Source from the content-addressed store, hash-verified

116
117@app.get("/named-function-scope")
118def get_named_function_scope(sessions: NamedSessionsFuncDep) -> Any:
119 def iter_data():
120 yield json.dumps(
121 {"named_session_open": sessions[0].open, "session_open": sessions[1].open}
122 )
123
124 return StreamingResponse(iter_data())
125
126
127@app.get("/regular-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…