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

Function get_regular_function_scope

tests/test_dependency_yield_scope.py:128–134  ·  view source on GitHub ↗
(sessions: RegularSessionsDep)

Source from the content-addressed store, hash-verified

126
127@app.get("/regular-function-scope")
128def get_regular_function_scope(sessions: RegularSessionsDep) -> Any:
129 def iter_data():
130 yield json.dumps(
131 {"named_session_open": sessions[0].open, "session_open": sessions[1].open}
132 )
133
134 return StreamingResponse(iter_data())
135
136
137app.include_router(

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…