(
function_session: SessionFuncDep, request_session: SessionRequestDep
)
| 94 | |
| 95 | @app.get("/two-scopes") |
| 96 | def 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") |
nothing calls this directly
no test coverage detected
searching dependent graphs…