QueryCodec

zio.http.codec.QueryCodec
object QueryCodec

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
QueryCodec.type

Members list

Value members

Inherited methods

def query[A](implicit schema: Schema[A]): QueryCodec[A]

Retrieves query parameters as a value of the specified type. The type must have a schema and be a case class and all fields must be query parameters. So fields must be of primitive types (e.g. Int, String, UUID, Instant etc.), a case class with a single field or a collection of either of these. Query parameters are selected by field names.

Retrieves query parameters as a value of the specified type. The type must have a schema and be a case class and all fields must be query parameters. So fields must be of primitive types (e.g. Int, String, UUID, Instant etc.), a case class with a single field or a collection of either of these. Query parameters are selected by field names.

Attributes

Inherited from:
QueryCodecs (hidden)
def query[A](name: String)(implicit schema: Schema[A]): QueryCodec[A]

Retrieves the query parameter with the specified name as a value of the specified type. The type must have a schema and can be a primitive type (e.g. Int, String, UUID, Instant etc.), a case class with a single field or a collection of either of these.

Retrieves the query parameter with the specified name as a value of the specified type. The type must have a schema and can be a primitive type (e.g. Int, String, UUID, Instant etc.), a case class with a single field or a collection of either of these.

Attributes

Inherited from:
QueryCodecs (hidden)

Deprecated and Inherited methods

def queryAll[A](implicit schema: Schema[A]): QueryCodec[A]

Attributes

Deprecated
[Since version 3.1.0] Use query[A] instead
Inherited from:
QueryCodecs (hidden)