Part

object Part

Provides part factory.

Companion:
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Part.type

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def apply(name: String, content: String): Part

Creates part using supplied string content.

Creates part using supplied string content.

def apply(name: String, content: Array[Byte]): Part

Creates part using supplied byte content.

Creates part using supplied byte content.

Note:

Content is copied.

def apply(name: String, content: Array[Byte], offset: Int, length: Int): Part

Creates part using supplied byte content.

Creates part using supplied byte content.

Note:

Content is copied.

def apply(name: String, content: File): Part

Creates part using supplied file content.

Creates part using supplied file content.

def apply(name: String, content: File, fileName: Option[String]): Part

Creates part using supplied file content and optional file name.

Creates part using supplied file content and optional file name.

def apply(contentDisposition: DispositionType, contentType: MediaType, content: String): Part

Creates part using supplied string content.

Creates part using supplied string content.

def apply(contentDisposition: DispositionType, contentType: MediaType, content: Array[Byte]): Part

Creates part using supplied byte content.

Creates part using supplied byte content.

def apply(contentDisposition: DispositionType, contentType: MediaType, content: File): Part

Creates part using supplied file content.

Creates part using supplied file content.