scamper.http.multipart

Members list

Type members

Classlikes

sealed trait Multipart

Represents multipart form data.

Represents multipart form data.

Attributes

See also
Companion
object
Supertypes
class Object
trait Matchable
class Any
object Multipart

Provides factory for Multipart.

Provides factory for Multipart.

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Multipart.type
sealed trait Part

Represents part in multipart form data.

Represents part in multipart form data.

Attributes

See also
Companion
object
Supertypes
class Object
trait Matchable
class Any
object Part

Provides part factory.

Provides part factory.

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Part.type

Givens

Givens

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

Converts Tuple to Part using byte content.

Converts Tuple to Part using byte content.

Attributes

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

Converts Tuple to Part using file content.

Converts Tuple to Part using file content.

Attributes

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

Converts Tuple to Part using string content.

Converts Tuple to Part using string content.

Attributes

Extensions

Extensions

extension [T <: HttpMessage & MessageBuilder[LazyRef(...)]](message: T)
def setMultipartBody(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

Attributes

def setMultipartBody(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

Attributes

def setMultipartBody(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

Attributes