Skip to content

[http-client-csharp] Add JSONL and SSE streaming support - #11462

Draft
JoshLove-msft wants to merge 4 commits into
microsoft:mainfrom
JoshLove-msft:josh/streaming-client-results
Draft

[http-client-csharp] Add JSONL and SSE streaming support#11462
JoshLove-msft wants to merge 4 commits into
microsoft:mainfrom
JoshLove-msft:josh/streaming-client-results

Conversation

@JoshLove-msft

Copy link
Copy Markdown
Contributor

Summary

  • preserve JSONL and SSE stream metadata in the C# emitter code model
  • generate incremental IAsyncEnumerable<T> JSONL requests and AsyncStreamingClientResult<T> JSONL responses
  • generate unbuffered SSE responses as AsyncStreamingClientResult<SseItem<BinaryData>>, including terminal-event suppression
  • add live Spector coverage for JSONL send/receive and all unnamed, named, and retrieval SSE scenarios
  • consume the streaming result APIs introduced by Add streaming client result abstractions Azure/azure-sdk-for-net#60994

Closes #10738

Validation

  • npm run build
  • npm test
  • npm run cop
  • Test-Spector.ps1 -filter "http/streaming/jsonl"
  • Test-Spector.ps1 -filter "http/streaming/sse"

npm run lint -- --emitter is currently blocked by the package resolving ESLint 10 while retaining a legacy ESLint configuration (eslint.config.* is not present).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e02ee7d0-8d27-46f8-a856-222d6a938ecd
@microsoft-github-policy-service microsoft-github-policy-service Bot added the emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp label Jul 29, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e02ee7d0-8d27-46f8-a856-222d6a938ecd
@github-actions

Copy link
Copy Markdown
Contributor

No changes needing a change description found.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e02ee7d0-8d27-46f8-a856-222d6a938ecd
@JoshLove-msft
JoshLove-msft marked this pull request as draft July 29, 2026 23:42
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: e02ee7d0-8d27-46f8-a856-222d6a938ecd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[http-client-csharp] Add support for Streaming/JSONL scenarios

1 participant