Binary
zio.http.FormField.Binary
final case class Binary(name: String, data: Chunk[Byte], contentType: MediaType, transferEncoding: Option[ContentTransferEncoding], filename: Option[String]) extends FormField
A binary form data part.
Value parameters
- contentType
-
The content type of this form data part. This is the value of the
Content-Type
with 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
name
field in theContent-Disposition
within this part. - transferEncoding
-
The transfer encoding of this form data part. This is the value of the
Content-Transfer-Encoding
within 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 thedata
accordingly.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait FormFieldclass Objecttrait Matchableclass Any
Members list
In this article