Package akka.http.scaladsl.model
Class Multipart.FormData$.BodyPart$
java.lang.Object
akka.http.scaladsl.model.Multipart.FormData$.BodyPart$
- Enclosing class:
- Multipart.FormData$
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
INTERNAL APIstatic class
StrictFormData.BodyPart
.static class
static class
INTERNAL API -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Multipart.FormData$.BodyPart$
Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionakka.http.scaladsl.model.Multipart.FormData.BodyPart
apply
(String _name, BodyPartEntity _entity, scala.collection.immutable.Map<String, String> _additionalDispositionParams, scala.collection.immutable.Seq<HttpHeader> _additionalHeaders) akka.http.scaladsl.model.Multipart.FormData.BodyPart
fromFile
(String name, ContentType contentType, File file, int chunkSize) Creates a BodyPart backed by a File that will be streamed using a FileSource.akka.http.scaladsl.model.Multipart.FormData.BodyPart
fromPath
(String name, ContentType contentType, Path file, int chunkSize) Creates a BodyPart backed by a file that will be streamed using a FileSource.scala.Option<scala.Tuple4<String,
BodyPartEntity, scala.collection.immutable.Map<String, String>, scala.collection.immutable.Seq<HttpHeader>>> unapply
(akka.http.scaladsl.model.Multipart.FormData.BodyPart value)
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
BodyPart$
public BodyPart$()
-
-
Method Details
-
apply
public akka.http.scaladsl.model.Multipart.FormData.BodyPart apply(String _name, BodyPartEntity _entity, scala.collection.immutable.Map<String, String> _additionalDispositionParams, scala.collection.immutable.Seq<HttpHeader> _additionalHeaders) -
fromFile
public akka.http.scaladsl.model.Multipart.FormData.BodyPart fromFile(String name, ContentType contentType, File file, int chunkSize) Creates a BodyPart backed by a File that will be streamed using a FileSource.- Parameters:
name
- (undocumented)contentType
- (undocumented)file
- (undocumented)chunkSize
- (undocumented)- Returns:
- (undocumented)
-
fromPath
public akka.http.scaladsl.model.Multipart.FormData.BodyPart fromPath(String name, ContentType contentType, Path file, int chunkSize) Creates a BodyPart backed by a file that will be streamed using a FileSource.- Parameters:
name
- (undocumented)contentType
- (undocumented)file
- (undocumented)chunkSize
- (undocumented)- Returns:
- (undocumented)
-
unapply
public scala.Option<scala.Tuple4<String,BodyPartEntity, unapplyscala.collection.immutable.Map<String, String>, scala.collection.immutable.Seq<HttpHeader>>> (akka.http.scaladsl.model.Multipart.FormData.BodyPart value)
-