Class Multipart.FormData$.BodyPart$
java.lang.Object
org.apache.pekko.http.scaladsl.model.Multipart.FormData$.BodyPart$
- Enclosing class:
- Multipart.FormData$
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classINTERNAL APIstatic classStrictFormData.BodyPart.static classstatic classINTERNAL 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 TypeMethodDescriptionorg.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPartapply(String _name, BodyPartEntity _entity, scala.collection.immutable.Map<String, String> _additionalDispositionParams, scala.collection.immutable.Seq<HttpHeader> _additionalHeaders) org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPartfromFile(String name, ContentType contentType, 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.BodyPartfromPath(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(org.apache.pekko.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 org.apache.pekko.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 org.apache.pekko.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 org.apache.pekko.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>>> (org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart value)
-