scamper.http.multipart

Type members

Classlikes

sealed trait Multipart

Represents multipart form data.

Represents multipart form data.

See also:
Companion:
object
object Multipart

Provides factory for Multipart.

Provides factory for Multipart.

Companion:
class
sealed trait Part

Represents part in multipart form data.

Represents part in multipart form data.

See also:
Companion:
object
object Part

Provides part factory.

Provides part factory.

Companion:
class
object tupleToByteArrayPart extends Conversion[(String, Array[Byte]), Part]

Converts Tuple to Part using byte content.

Converts Tuple to Part using byte content.

object tupleToFilePart extends Conversion[(String, File), Part]

Converts Tuple to Part using file content.

Converts Tuple to Part using file content.

object tupleToStringPart extends Conversion[(String, String), Part]

Converts Tuple to Part using string content.

Converts Tuple to Part using string content.

Givens

Givens

Converts Tuple to Part using byte content.

Converts Tuple to Part using byte content.

Converts Tuple to Part using file content.

Converts Tuple to Part using file content.

Converts Tuple to Part using string content.

Converts Tuple to Part using string content.

Extensions

Extensions

extension [T <: HttpMessage & MessageBuilder[LazyRef(...)]](message: T)
def setMultipart(multipart: Multipart): T

Creates new message with multipart message body.

Creates new message with multipart message body.

Content-Type is set to multipart/form-data with generated boundary parameter.

Value parameters:
multipart

message body

def setMultipart(parts: Seq[Part]): T

Creates new message with multipart message body.

Creates new message with multipart message body.

Content-Type is set to multipart/form-data with generated boundary parameter.

Value parameters:
parts

message body

def setMultipart(one: Part, more: Part*): T

Creates new message with multipart message body.

Creates new message with multipart message body.

Content-Type is set to multipart/form-data with generated boundary parameter.

Value parameters:
more

additional parts

one

part