FilePart

org.llm4s.http.MultipartPart.FilePart
See theFilePart companion object
final case class FilePart extends MultipartPart

A file field in a multipart request.

Value parameters

content

the file on disk, or bytes in memory

contentType

the part's Content-Type

filename

the file name the server is told

name

the form field name

Attributes

Companion
object
Source
Llm4sHttpClient.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def withBytes(bytes: Array[Byte]): FilePart

Sends bytes.

Sends bytes.

Attributes

Source
Llm4sHttpClient.scala
def withContent(content: Content): FilePart

Sets where the bytes come from.

Sets where the bytes come from.

Attributes

Source
Llm4sHttpClient.scala
def withContentType(contentType: String): FilePart

Sets the part's Content-Type.

Sets the part's Content-Type.

Attributes

Source
Llm4sHttpClient.scala
def withFilename(filename: String): FilePart

Sets the file name the server is told.

Sets the file name the server is told.

Attributes

Source
Llm4sHttpClient.scala
def withName(name: String): FilePart

Sets the field name.

Sets the field name.

Attributes

Source
Llm4sHttpClient.scala
def withPath(path: Path): FilePart

Sends the file at path, read when the request is sent.

Sends the file at path, read when the request is sent.

Attributes

Source
Llm4sHttpClient.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product