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

Givens

Givens

given tupleToByteArrayPart: Conversion[(String, Array[Byte]), Part]

Converts Tuple to Part using byte content.

Converts Tuple to Part using byte content.

given tupleToFilePart: Conversion[(String, File), Part]

Converts Tuple to Part using file content.

Converts Tuple to Part using file content.

given tupleToStringPart: Conversion[(String, String), Part]

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 Params
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 Params
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 Params
more

additional parts

one

part