object FormData
- Source
- Multipart.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- FormData
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- sealed abstract class BodyPart extends Multipart.BodyPart with javadsl.model.Multipart.FormData.BodyPart
Body part of the FormData model.
- 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
- def apply(_parts: Source[BodyPart, Any]): FormData
- def apply(fields: Map[String, HttpEntity.Strict]): Strict
- def apply(parts: BodyPart*): FormData
- def apply(parts: FormData.BodyPart.Strict*): Strict
- 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", ...)
- 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", ...)
- object BodyPart