Skip to content

[http-client-java] Generate HTTP response-to-SSE decoding in service SDKs #11941

Description

Clear and concise description of the problem

The Java emitter needs to convert streaming HTTP responses into SSE events. Per Azure/azure-sdk-for-java#50264, decoding should be generated into each service SDK's implementation package rather than added to Azure Core.

Acceptance criteria

  • Generated code handles UTF-8, BOM, SSE line endings, multiline data, comments, and malformed fields.
  • Response closure, completion, errors, and cancellation have deterministic behavior.
  • Pending line and event data are bounded with clear failures when limits are exceeded.
  • Decoder code remains outside the service SDK's public API and has generated tests.

Dependencies

Checklist

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

emitter:client:javaIssue for the Java client emitter: @typespec/http-client-javafeatureNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions