org.llm4s.http
Members list
Type members
Classlikes
HTTP response wrapper for binary (non-text) response bodies.
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
- statusCode
-
HTTP status code
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
HTTP response wrapper exposing status code, body, and headers.
HTTP response wrapper exposing status code, body, and headers.
Value parameters
- body
-
Response body as a string
- headers
-
Response headers as a multi-valued map (lowercase keys)
- statusCode
-
HTTP status code (e.g. 200, 404)
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Abstraction for HTTP client to enable dependency injection and testing.
Abstraction for HTTP client to enable dependency injection and testing.
All methods accept timeout in milliseconds. Headers are passed as single-valued maps. The implementation never throws on non-2xx status codes — callers inspect HttpResponse.statusCode themselves.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Llm4sHttpClient.type
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
MultipartPart.type
HTTP response wrapper for streaming (InputStream-based) response bodies.
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
- statusCode
-
HTTP status code
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all