trait Multipart extends AnyRef

The model of multipart content for media-types multipart/\* (general multipart content), multipart/form-data and multipart/byteranges.

The basic modelling classes for these media-types (akka.http.scaladsl.Multipart.General, Multipart.FormData and akka.http.scaladsl.Multipart.ByteRanges, respectively) are stream-based but each have a strict counterpart (namely akka.http.scaladsl.Multipart.General.Strict, akka.http.scaladsl.Multipart.FormData.Strict and akka.http.scaladsl.Multipart.ByteRanges.Strict).

Source
Multipart.java
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Multipart
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def getMediaType(): MediaType.Multipart
  2. abstract def getParts(): Source[_ <: BodyPart, AnyRef]
  3. abstract def toEntity(): RequestEntity

    Creates an entity from this multipart object using a random boundary.

  4. abstract def toEntity(boundary: String): RequestEntity

    Creates an entity from this multipart object using the specified boundary.

  5. abstract def toStrict(timeoutMillis: Long, materializer: Materializer): CompletionStage[_ <: Strict]

    Converts this content into its strict counterpart.

    Converts this content into its strict counterpart. The given timeout denotes the max time that an individual part must be read in. The CompletionStage is failed with an TimeoutException if one part isn't read completely after the given timeout.