Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for get_stream_simple (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/test_dependency_after_yield_streaming.py

    app = FastAPI()
    
    
    @app.get("/data")
    def get_data(session: SessionDep) -> Any:
        data = list(session)
        return data
    
    
    @app.get("/stream-simple")
    def get_stream_simple(session: SessionDep) -> Any:
        def iter_data():
            yield from ["x", "y", "z"]
    
        return StreamingResponse(iter_data())
    
    
    @app.get("/stream-session")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 3.2K bytes
    - Click Count (0)
Back to Top