StreamResponse

public abstract class StreamResponse

Known direct subclasses
StreamResponse.Message

An event message received during the stream.

StreamResponse.Result

The final result of the computation, marking the end of the stream.


Represents a response from a Server-Sent Event (SSE) stream.

The SSE stream consists of two types of responses:

  • Message: Represents an intermediate event pushed from the server.

  • Result: Represents the final response that signifies the stream has ended.

Summary

Nested types

public final class StreamResponse.Message extends StreamResponse

An event message received during the stream.

public final class StreamResponse.Result extends StreamResponse

The final result of the computation, marking the end of the stream.