HttpClient

org.llm4s.imagegeneration.provider.HttpClient
See theHttpClient companion object
trait HttpClient

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def get(url: String, headers: Map[String, String], timeout: Int): Try[HttpResponse]
def post(url: String, headers: Map[String, String], data: String, timeout: Int): Try[HttpResponse]
def postBytes(url: String, headers: Map[String, String], data: Array[Byte], timeout: Int): Try[HttpResponse]
def postMultipart(url: String, headers: Map[String, String], data: Seq[MultipartPart], timeout: Int): Try[HttpResponse]
def postRaw(url: String, headers: Map[String, String], data: String, timeout: Int): Try[HttpRawResponse]

POST with a string body and return raw bytes, bypassing charset decoding.

POST with a string body and return raw bytes, bypassing charset decoding.

Attributes