public interface Multipart
The basic modelling classes for these media-types ([[org.apache.pekko.http.scaladsl.Multipart.General]], [[Multipart.FormData]] and [[org.apache.pekko.http.scaladsl.Multipart.ByteRanges]], respectively) are stream-based but each have a strict counterpart (namely [[org.apache.pekko.http.scaladsl.Multipart.General.Strict]], [[org.apache.pekko.http.scaladsl.Multipart.FormData.Strict]] and [[org.apache.pekko.http.scaladsl.Multipart.ByteRanges.Strict]]).
Modifier and Type | Interface and Description |
---|---|
static interface |
Multipart.BodyPart |
static interface |
Multipart.ByteRanges
Model for `multipart/byteranges` content as defined by
https://tools.ietf.org/html/rfc7233#section-5.4.1 and
https://tools.ietf.org/html/rfc7233#appendix-A
|
static interface |
Multipart.FormData
Model for `multipart/form-data` content as defined in http://tools.ietf.org/html/rfc2388.
|
static interface |
Multipart.General
Basic model for multipart content as defined by http://tools.ietf.org/html/rfc2046.
|
static interface |
Multipart.Strict |
Modifier and Type | Method and Description |
---|---|
MediaType.Multipart |
getMediaType() |
org.apache.pekko.stream.javadsl.Source<? extends Multipart.BodyPart,java.lang.Object> |
getParts() |
RequestEntity |
toEntity()
Creates an entity from this multipart object using a random boundary.
|
RequestEntity |
toEntity(java.lang.String boundary)
Creates an entity from this multipart object using the specified boundary.
|
java.util.concurrent.CompletionStage<? extends Multipart.Strict> |
toStrict(long timeoutMillis,
org.apache.pekko.stream.Materializer materializer)
Converts this content into its strict counterpart.
|
MediaType.Multipart getMediaType()
org.apache.pekko.stream.javadsl.Source<? extends Multipart.BodyPart,java.lang.Object> getParts()
java.util.concurrent.CompletionStage<? extends Multipart.Strict> toStrict(long timeoutMillis, org.apache.pekko.stream.Materializer materializer)
RequestEntity toEntity(java.lang.String boundary)
RequestEntity toEntity()