Interface HttpStreamingEvent

All Known Implementing Classes:
HttpResponseReceived, ServerSentEvent

@Experimental public interface HttpStreamingEvent
An event emitted while consuming a streaming HTTP response via HttpClient.stream(dev.langchain4j.http.client.HttpRequest). This is the reactive counterpart of ServerSentEventListener: the publisher emits a HttpResponseReceived (the response head — status and headers) once, followed by a ServerSentEvent for each parsed server-sent event.

This is an open interface on purpose — additional event kinds may be introduced over time — so consumers must be prepared to receive event types they do not recognize and ignore them.

Since:
1.20.0