Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/fastapi/fastapi
/ iter_data
Function
iter_data
tests/test_dependency_yield_scope.py:81–82 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
79
@app.get(
"/function-scope"
)
80
def
function_scope(session: SessionFuncDep) -> Any:
81
def
iter_data():
82
yield
json.dumps({
"is_open"
: session.open})
83
84
return
StreamingResponse(iter_data())
85
Callers
6
function_scope
Function · 0.70
request_scope
Function · 0.70
get_stream_session
Function · 0.70
get_sub
Function · 0.70
get_named_function_scope
Function · 0.70
get_regular_function_scope
Function · 0.70
Calls
1
dumps
Method · 0.45
Tested by
no test coverage detected