Part

case
class Part[+T](name: String, body: T, otherDispositionParams: Map[String, String], headers: Seq[Header]) extends HasHeaders

A decoded representation of a multipart part.

Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def contentType(v: String): Part[T]
override
def contentType: Option[String]
Definition Classes
def dispositionParam(k: String, v: String): Part[T]
def dispositionParams: Map[String, String]
def dispositionParamsSeq: Seq[(String, String)]
def fileName(v: String): Part[T]
def fileName: Option[String]
def header(h: Header, replaceExisting: Boolean): Part[T]

Adds the given header to the end of the headers sequence.

Adds the given header to the end of the headers sequence.

Value Params
replaceExisting

If there's already a header with the same name, should it be dropped?

def header(k: String, v: String): Part[T]
def header(k: String, v: String, replaceExisting: Boolean): Part[T]

Adds the given header to the end of the headers sequence.

Adds the given header to the end of the headers sequence.

Value Params
replaceExisting

If there's already a header with the same name, should it be dropped?

override
def header(h: String): Option[String]
Definition Classes

Inherited methods

def contentLength: Option[Long]
Inherited from
HasHeaders
def cookies: Seq[Either[String, CookieWithMeta]]
Inherited from
HasHeaders
def headers(h: String): Seq[String]
Inherited from
HasHeaders
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
Inherited from
HasHeaders