Package dev.langchain4j.http.client.sse
package dev.langchain4j.http.client.sse
-
ClassDescription
HttpStreamingEventsignalling that the server answered with an error status (not 2xx).HttpStreamingEventsignalling that the HTTP response head (status and headers) was received and the stream opened successfully.An event emitted while consuming a streaming HTTP response viaHttpClient.stream(dev.langchain4j.http.client.HttpRequest).Parses server-sent events (SSE) from anInputStream, constructsServerSentEventobjects, and delivers them to the providedServerSentEventListener.Stateful, non-blocking SSE parser.Handle that can be used to cancel the parsing of server-sent events.