Text

zio.http.FormField$.Text
final case class Text(name: String, value: String, contentType: MediaType, filename: Option[String]) extends FormField

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait FormField
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Inherited methods

final def asChunk: 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
final def asText: 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

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

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
def withName(newName: String): FormField

Attributes

Inherited from:
FormField