Class/Object

sttp.model

Part

Related Docs: object Part | package model

Permalink

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

A decoded representation of a multipart part.

Linear Supertypes
Serializable, Serializable, Product, Equals, HasHeaders, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Part
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. HasHeaders
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Part(name: String, body: T, otherDispositionParams: Map[String, String], headers: Seq[Header])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val body: T

    Permalink
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  7. def contentDispositionHeaderValue: String

    Permalink
  8. def contentLength: Option[Long]

    Permalink
    Definition Classes
    HasHeaders
  9. def contentType: Option[String]

    Permalink
    Definition Classes
    PartHasHeaders
  10. def contentType(v: String): Part[T]

    Permalink
  11. def contentType(v: MediaType): Part[T]

    Permalink
  12. def cookies: Seq[Either[String, CookieWithMeta]]

    Permalink
    Definition Classes
    HasHeaders
  13. def dispositionParam(k: String, v: String): Part[T]

    Permalink
  14. def dispositionParams: Map[String, String]

    Permalink
  15. def dispositionParamsSeq: Seq[(String, String)]

    Permalink
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def fileName: Option[String]

    Permalink
  18. def fileName(v: String): Part[T]

    Permalink
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  20. def header(h: String): Option[String]

    Permalink
    Definition Classes
    PartHasHeaders
  21. def header(k: String, v: String, replaceExisting: Boolean): Part[T]

    Permalink

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

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

    replaceExisting

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

  22. def header(k: String, v: String): Part[T]

    Permalink
  23. def header(h: Header, replaceExisting: Boolean = false): Part[T]

    Permalink

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

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

    replaceExisting

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

  24. def headers(h: String): Seq[String]

    Permalink
    Definition Classes
    HasHeaders
  25. val headers: Seq[Header]

    Permalink
    Definition Classes
    PartHasHeaders
  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. val name: String

    Permalink
  28. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  30. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  31. val otherDispositionParams: Map[String, String]

    Permalink
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. def unsafeCookies: Seq[CookieWithMeta]

    Permalink
    Definition Classes
    HasHeaders
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HasHeaders

Inherited from AnyRef

Inherited from Any

Ungrouped