org.llm4s.http.HttpRawResponse
See theHttpRawResponse companion object
@Stable
HTTP response wrapper for binary (non-text) response bodies.
Use this instead of HttpResponse when the response body is binary data (e.g. image bytes) to avoid lossy charset decoding.
Value parameters
- body
-
Raw response bytes — exact wire representation, no charset conversion
- headers
-
Response headers as a multi-valued map (lowercase keys) Build one with HttpRawResponse.apply and change it with the
with*setters; the constructor andcopyare private, so a new field never breaks callers. - statusCode
-
HTTP status code
Attributes
- Companion
- object
- Source
- Llm4sHttpClient.scala
- Graph
-
- Supertypes
Members list
In this article
