Skip to content

feat(streaming): generic stream responses (generators) for non-SSE chunks - #125

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue-103-streaming
Jun 21, 2026
Merged

feat(streaming): generic stream responses (generators) for non-SSE chunks#125
ZhuchkaTriplesix merged 1 commit into
devfrom
issue-103-streaming

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Resolves #103

  • Adds oxyroute.streaming module with stream_bytes, stream_text, and stream_jsonl helpers.
  • Uses Granian's response_stream to write chunks incrementally.
  • Handlers returning streams must be async def and await the helpers to properly respect RSGI backpressure.
  • Updated documentation (docs/streaming.md) to cover error and backpressure behavior.
  • Added comprehensive unit tests in tests/test_streaming.py.

@ZhuchkaTriplesix ZhuchkaTriplesix added this to the v0.3.0 milestone Jun 21, 2026
@ZhuchkaTriplesix ZhuchkaTriplesix added the enhancement New feature or request label Jun 21, 2026
@ZhuchkaTriplesix ZhuchkaTriplesix self-assigned this Jun 21, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit c9c9e07 into dev Jun 21, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant