Skip to content

add support streaming flag#28

Merged
WendelHime merged 3 commits intomainfrom
feat/add-supportStreaming-flag
Feb 19, 2026
Merged

add support streaming flag#28
WendelHime merged 3 commits intomainfrom
feat/add-supportStreaming-flag

Conversation

@WendelHime
Copy link
Contributor

No description provided.

@WendelHime WendelHime marked this pull request as ready for review February 16, 2026 14:23
@WendelHime WendelHime requested a review from Copilot February 19, 2026 19:10
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for filtering transports based on whether they support streaming, enabling the system to skip non-streamable transports when handling streaming requests (e.g., Server-Sent Events).

Changes:

  • Added IsStreamable() method to the Transport interface to indicate streaming support capability
  • Modified transport filtering logic in RoundTrip to skip non-streamable transports when the Accept header indicates a streaming request
  • Updated all transport initialization calls to include the new isStreamable parameter (AMP cache set to false, all others set to true)

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
race_transport.go Added streaming header detection and transport filtering logic; imported log/slog
kindling.go Extended Transport interface with IsStreamable method; updated namedTransport struct and all newTransport calls with isStreamable parameter
kindling_test.go Updated test transport initialization calls to include the new isStreamable parameter

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@WendelHime WendelHime merged commit df15c15 into main Feb 19, 2026
1 check passed
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.

3 participants