- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for stream_story_bytes (1.24 seconds)
-
docs_src/stream_data/tutorial001_py310.py
def stream_story_no_async_no_annotation(): for line in message.splitlines(): yield line @app.get("/story/stream-bytes", response_class=StreamingResponse) async def stream_story_bytes() -> AsyncIterable[bytes]: for line in message.splitlines(): yield line.encode("utf-8") @app.get("/story/stream-no-async-bytes", response_class=StreamingResponse)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 27 18:56:47 GMT 2026 - 2.2K bytes - Click Count (0)