MCPcopy
hub / github.com/fastapi/fastapi / get_stream_session

Function get_stream_session

tests/test_dependency_yield_scope.py:96–104  ·  view source on GitHub ↗
(
    function_session: SessionFuncDep, request_session: SessionRequestDep
)

Source from the content-addressed store, hash-verified

94
95@app.get("/two-scopes")
96def get_stream_session(
97 function_session: SessionFuncDep, request_session: SessionRequestDep
98) -> Any:
99 def iter_data():
100 yield json.dumps(
101 {"func_is_open": function_session.open, "req_is_open": request_session.open}
102 )
103
104 return StreamingResponse(iter_data())
105
106
107@app.get("/sub")

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…