Form

zio.http.Form
See theForm companion class
object Form

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Form.type

Members list

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(formData: FormField*): Form

Creates a form from the specified form data.

Creates a form from the specified form data.

Attributes

def fromMultipartBytes(bytes: Chunk[Byte], charset: Charset, boundary: Option[Boundary])(implicit trace: Trace): ZIO[Any, Throwable, Form]

Creates a form from the specified form data, encoded as multipart bytes.

Creates a form from the specified form data, encoded as multipart bytes.

Attributes

def fromQueryParams(queryParams: QueryParams): Form
def fromStrings(formData: (String, String)*): Form

Creates a form from the specified form data, expressed as a sequence of string key-value pairs.

Creates a form from the specified form data, expressed as a sequence of string key-value pairs.

Attributes

def fromURLEncoded(encoded: String, charset: Charset): Either[FormDecodingError, Form]

Creates a form from the specified URL encoded data.

Creates a form from the specified URL encoded data.

Attributes

Concrete fields

val empty: Form

An empty form, without any fields.

An empty form, without any fields.

Attributes