public static class Multipart.FormData$.BodyPart$
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Multipart.FormData$.BodyPart$.Builder$
INTERNAL API
|
static class |
Multipart.FormData$.BodyPart$.Strict
Strict
FormData.BodyPart . |
static class |
Multipart.FormData$.BodyPart$.Strict$ |
static class |
Multipart.FormData$.BodyPart$.StrictBuilder$
INTERNAL API
|
Modifier and Type | Field and Description |
---|---|
static Multipart.FormData$.BodyPart$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
BodyPart$() |
Modifier and Type | Method and Description |
---|---|
org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart |
apply(java.lang.String _name,
BodyPartEntity _entity,
scala.collection.immutable.Map<java.lang.String,java.lang.String> _additionalDispositionParams,
scala.collection.immutable.Seq<HttpHeader> _additionalHeaders) |
org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart |
fromFile(java.lang.String name,
ContentType contentType,
java.io.File file,
int chunkSize)
Creates a BodyPart backed by a File that will be streamed using a FileSource.
|
org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart |
fromPath(java.lang.String name,
ContentType contentType,
java.nio.file.Path file,
int chunkSize)
Creates a BodyPart backed by a file that will be streamed using a FileSource.
|
scala.Option<scala.Tuple4<java.lang.String,BodyPartEntity,scala.collection.immutable.Map<java.lang.String,java.lang.String>,scala.collection.immutable.Seq<HttpHeader>>> |
unapply(org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart value) |
public static final Multipart.FormData$.BodyPart$ MODULE$
public org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart apply(java.lang.String _name, BodyPartEntity _entity, scala.collection.immutable.Map<java.lang.String,java.lang.String> _additionalDispositionParams, scala.collection.immutable.Seq<HttpHeader> _additionalHeaders)
public org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart fromFile(java.lang.String name, ContentType contentType, java.io.File file, int chunkSize)
name
- (undocumented)contentType
- (undocumented)file
- (undocumented)chunkSize
- (undocumented)public org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart fromPath(java.lang.String name, ContentType contentType, java.nio.file.Path file, int chunkSize)
name
- (undocumented)contentType
- (undocumented)file
- (undocumented)chunkSize
- (undocumented)public scala.Option<scala.Tuple4<java.lang.String,BodyPartEntity,scala.collection.immutable.Map<java.lang.String,java.lang.String>,scala.collection.immutable.Seq<HttpHeader>>> unapply(org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart value)