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

Function request_scope

tests/test_dependency_yield_scope.py:88–92  ·  view source on GitHub ↗
(session: SessionRequestDep)

Source from the content-addressed store, hash-verified

86
87@app.get("/request-scope")
88def request_scope(session: SessionRequestDep) -> Any:
89 def iter_data():
90 yield json.dumps({"is_open": session.open})
91
92 return StreamingResponse(iter_data())
93
94
95@app.get("/two-scopes")

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…