StreamingBinary

zio.http.FormField.StreamingBinary
final case class StreamingBinary(name: String, contentType: MediaType, transferEncoding: Option[ContentTransferEncoding] = ..., filename: Option[String] = ..., data: ZStream[Any, Nothing, Byte]) extends FormField

Attributes

Source
FormField.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait FormField
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def collect(implicit trace: Trace): ZIO[Any, Nothing, Binary]

Attributes

Source
FormField.scala

Inherited methods

final def asChunk(implicit trace: Trace): ZIO[Any, Nothing, Chunk[Byte]]

Gets the value of this form field as a chunk of bytes. If it is a text field, the value gets encoded as an UTF-8 byte stream.

Gets the value of this form field as a chunk of bytes. If it is a text field, the value gets encoded as an UTF-8 byte stream.

Attributes

Inherited from:
FormField
Source
FormField.scala
final def asStream(implicit trace: Trace): ZStream[Any, Nothing, Byte]

Gets the value of this form field as a chunk of bytes. If it is a text field, the value gets encoded as an UTF-8 byte stream.

Gets the value of this form field as a chunk of bytes. If it is a text field, the value gets encoded as an UTF-8 byte stream.

Attributes

Inherited from:
FormField
Source
FormField.scala
final def asText(implicit trace: Trace): ZIO[Any, CharacterCodingException, String]

Gets the value of this form field as a String. If it is a binary field, the value is interpreted as an UTF-8 byte stream.

Gets the value of this form field as a String. If it is a binary field, the value is interpreted as an UTF-8 byte stream.

Attributes

Inherited from:
FormField
Source
FormField.scala
def name(newName: String): FormField

Attributes

Inherited from:
FormField
Source
FormField.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
final def stringValue: Option[String]

Gets the value as a String, but only if it is a text or simple field. For binary fields it returns None.

Gets the value as a String, but only if it is a text or simple field. For binary fields it returns None.

Attributes

Inherited from:
FormField
Source
FormField.scala