Skip to content

Conversation

@swapnil-nagar
Copy link
Contributor

PR: Add AsyncIterable support to HttpResponseBodyInit

Description:
Adds AsyncIterable as a valid body type for HTTP responses. This enables streaming response scenarios such as AI chat completions, where data is returned incrementally via async generators. Customers can now pass async iterables directly to HttpResponseInit.body without needing to convert them to ReadableStream first.

@swapnil-nagar swapnil-nagar requested a review from a team as a code owner February 6, 2026 08:06
@swapnil-nagar
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@swapnil-nagar swapnil-nagar enabled auto-merge (squash) February 6, 2026 17:28
Copy link
Contributor

@TsuyoshiUshio TsuyoshiUshio left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you for finding gap for undici.

@swapnil-nagar swapnil-nagar merged commit 533dedc into v4.x Feb 6, 2026
13 checks passed
@swapnil-nagar swapnil-nagar deleted the swapnil/AddingAsyncIterable branch February 6, 2026 18:57
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.

2 participants