StreamingHttpResponse
org.llm4s.http.StreamingHttpResponse
@Stable
case class StreamingHttpResponse(statusCode: Int, body: InputStream, headers: Map[String, Seq[String]])
HTTP response wrapper for streaming (InputStream-based) response bodies.
Use this instead of HttpResponse when the response body must be consumed incrementally (e.g. server-sent events, JSON lines).
Value parameters
- body
-
Response body as an InputStream — caller is responsible for closing it, on error statuses too
- headers
-
Response headers as a multi-valued map (lowercase keys)
- statusCode
-
HTTP status code
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article