stream abstract method

Stream<Uint8List> stream(
  1. KataCxRequest request
)

Performs request and yields body bytes as they arrive.

Yields raw bytes rather than strings on purpose: /chat-streaming sends unframed UTF-8, and a multi-byte character can straddle two reads. Callers must decode with utf8.decoder as a stream transformer — decoding each chunk on its own corrupts it.

Throws when the response status is not 2xx. No read deadline applies, matching the Android module's streaming client.

Implementation

Stream<Uint8List> stream(KataCxRequest request);