Class Multipart.FormData$.BodyPart$

java.lang.Object
akka.http.scaladsl.model.Multipart.FormData$.BodyPart$
Enclosing class:
Multipart.FormData$

public static class Multipart.FormData$.BodyPart$ extends Object
  • Field Details

  • 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,scala.collection.immutable.Map<String,String>,scala.collection.immutable.Seq<HttpHeader>>> unapply(akka.http.scaladsl.model.Multipart.FormData.BodyPart value)