Skip to content

Stream SSE responses and improve response body errors#596

Merged
ryanfowler merged 1 commit into
mainfrom
fix-sse-body-errors
May 26, 2026
Merged

Stream SSE responses and improve response body errors#596
ryanfowler merged 1 commit into
mainfrom
fix-sse-body-errors

Conversation

@ryanfowler
Copy link
Copy Markdown
Owner

Summary

  • Stream text/event-stream responses through the formatted output path so SSE events print as they arrive instead of waiting for EOF.
  • Preserve SSE parsing across chunk boundaries and update the SSE example to match the formatter’s actual output.
  • Replace the vague request or response body error surface with a clearer response body error: ... message that keeps useful transport detail.
  • Add integration coverage for live SSE streaming and partial-body failures.

Testing

  • cargo fmt
  • cargo clippy --locked --all-targets --all-features -- -D warnings
  • cargo test --all-features
  • cargo test --all-features --test integration -- --test-threads=1

@ryanfowler ryanfowler force-pushed the fix-sse-body-errors branch 4 times, most recently from a68f8fe to 69ee5ec Compare May 26, 2026 05:15
@ryanfowler ryanfowler force-pushed the fix-sse-body-errors branch from 69ee5ec to 34abac3 Compare May 26, 2026 05:41
@ryanfowler ryanfowler merged commit 174cdb9 into main May 26, 2026
4 checks passed
@ryanfowler ryanfowler deleted the fix-sse-body-errors branch May 26, 2026 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant