FilePart

object FilePart

Provides factory for FilePart.

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

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

Creates file part with given name and content.

Creates file part with given name and content.

def apply(name: String, content: File, fileName: String): FilePart

Creates file part with given name, content, and file name.

Creates file part with given name, content, and file name.

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

Creates file part with given name, content, and optional file name.

Creates file part with given name, content, and optional file name.

def apply(contentDisposition: DispositionType, content: File): FilePart

Creates file part from supplied disposition and content.

Creates file part from supplied disposition and content.

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

Creates file part from supplied disposition, content type, and content.

Creates file part from supplied disposition, content type, and content.

def apply(headers: Seq[Header], content: File): FilePart

Creates file part from supplied headers and content.

Creates file part from supplied headers and content.