HttpResponse

org.llm4s.http.HttpResponse
See theHttpResponse companion object
case class HttpResponse(statusCode: Int, body: String, headers: Map[String, Seq[String]])

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

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def ensureSuccess(provider: String): Result[HttpResponse]
Extension method from HttpResponse
def toJson(fieldName: String): Result[JsonHttpResponse]
Extension method from HttpResponse

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product