MCPcopy
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")
80def 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_scopeFunction · 0.70
request_scopeFunction · 0.70
get_stream_sessionFunction · 0.70
get_subFunction · 0.70
get_named_function_scopeFunction · 0.70

Calls 1

dumpsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…