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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def header(name: String): Option[String]

First value of header name, matched case-insensitively.

First value of header name, matched case-insensitively.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product