Part

sttp.model.Part
See thePart companion object
case class Part[+T](name: String, body: T, otherDispositionParams: Map[String, String], headers: Seq[Header]) extends HasHeaders

A decoded representation of a multipart part.

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def contentType(v: String): Part[T]
override def contentType: Option[String]

Attributes

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.

Attributes

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.

Attributes

replaceExisting

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

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

Attributes

Definition Classes

Inherited methods

def contentLength: Option[Long]

Attributes

Inherited from:
HasHeaders
def cookies: Seq[Either[String, CookieWithMeta]]

Attributes

Inherited from:
HasHeaders
def headers(h: String): Seq[String]

Attributes

Inherited from:
HasHeaders
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Attributes

Inherited from:
HasHeaders