zio.http.FormField
See theFormField companion trait
object FormField
Attributes
Members list
Type members
Classlikes
A binary form data part.
A binary form data part.
Value parameters
- contentType
-
The content type of this form data part. This is the value of the
Content-Typewith in this part. - data
-
The data of this form data part. This is the data between the headers and the boundary.
- name
-
Name of this form data part. This is the value of the
namefield in theContent-Dispositionwithin this part. - transferEncoding
-
The transfer encoding of this form data part. This is the value of the
Content-Transfer-Encodingwithin this part. IMPORTANT NOTE: The data is not encoded in any way relative to the providedtransferEncoding. It is the responsibility of the user to encode thedataaccordingly.
Attributes
- Supertypes
final case class StreamingBinary(name: String, contentType: MediaType, transferEncoding: Option[ContentTransferEncoding] = ..., filename: Option[String] = ..., data: ZStream[Any, Nothing, Byte]) extends FormField
Inherited and Abstract types
The names of the product elements
The name of the type
Value members
Concrete methods
def binaryField(name: String, data: Chunk[Byte], mediaType: MediaType, transferEncoding: Option[ContentTransferEncoding] = ..., filename: Option[String] = ...): FormField
def streamingBinaryField(name: String, data: ZStream[Any, Nothing, Byte], mediaType: MediaType, transferEncoding: Option[ContentTransferEncoding] = ..., filename: Option[String] = ...): FormField
In this article