scamper.http.multipart

Type members

Classlikes

trait FilePart extends Part

Represents file content in multipart form data.

Represents file content in multipart form data.

See also
Companion
object
object FilePart

Provides factory for FilePart.

Provides factory for FilePart.

Companion
class
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
trait TextPart extends Part

Represents text content in multipart form data.

Represents text content in multipart form data.

See also
Companion
object
object TextPart

Provides factory for TextPart.

Provides factory for TextPart.

Companion
class

Givens

Givens

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

Converts tuple to FilePart where tuple is name-content pair.

Converts tuple to FilePart where tuple is name-content pair.

given tupleToTextPart: Conversion[(String, String), TextPart]

Converts tuple to TextPart where tuple is name-content pair.

Converts tuple to TextPart where tuple is name-content pair.

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