Packages

object FormData

Source
Multipart.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FormData
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. sealed abstract class BodyPart extends Multipart.BodyPart with javadsl.model.Multipart.FormData.BodyPart

    Body part of the FormData model.

  2. case class Strict(strictParts: Seq[BodyPart.Strict]) extends FormData with Multipart.Strict with javadsl.model.Multipart.FormData.Strict with Product with Serializable

    Strict FormData.

Value Members

  1. def apply(_parts: Source[BodyPart, Any]): FormData
  2. def apply(fields: Map[String, HttpEntity.Strict]): Strict
  3. def apply(parts: BodyPart*): FormData
  4. def apply(parts: FormData.BodyPart.Strict*): Strict
  5. def fromFile(name: String, contentType: ContentType, file: File, chunkSize: Int = -1): FormData

    Creates a FormData instance that contains a single part backed by the given file.

    Creates a FormData instance that contains a single part backed by the given file.

    To create an instance with several parts or for multiple files, use FormData(BodyPart.fromFile("field1", ...), BodyPart.fromFile("field2", ...)

  6. def fromPath(name: String, contentType: ContentType, file: Path, chunkSize: Int = -1): FormData

    Creates a FormData instance that contains a single part backed by the given file.

    Creates a FormData instance that contains a single part backed by the given file.

    To create an instance with several parts or for multiple files, use FormData(BodyPart.fromPath("field1", ...), BodyPart.fromPath("field2", ...)

  7. object BodyPart