trait QueryGetters[+A] extends AnyRef
- Self Type
- QueryOps[A]
- Alphabetic
- By Inheritance
- QueryGetters
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def queryParameters: QueryParams
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def query[T](implicit schema: Schema[T]): Either[QueryParamError, T]
Retrieves query parameters as a value of the specified type.
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.
- def query[T](key: String)(implicit schema: Schema[T]): Either[QueryParamError, T]
Retrieves the query parameter with the specified name as a value of the specified type.
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.
- def queryOrElse[T](default: => T)(implicit schema: Schema[T]): T
- def queryOrElse[T](key: String, default: => T)(implicit schema: Schema[T]): T
- def queryParam(key: String): Option[String]
Retrieves the first query parameter value having the specified name.
- def queryParamOrElse(key: String, default: => String): String
Retrieves the first query parameter value having the specified name, or else uses the default value.
- def queryParams(key: String): Chunk[String]
Retrieves all query parameter values having the specified name.
- def queryParamsOrElse(key: String, default: => Iterable[String]): Chunk[String]
Retrieves all query parameter values having the specified name, or else uses the default iterable.
- def queryZIO[T](key: String)(implicit schema: Schema[T]): IO[QueryParamError, T]
Retrieves all typed query parameter values having the specified name as ZIO
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def queryParamTo[T](key: String)(implicit codec: TextCodec[T]): Either[QueryParamsError, T]
Retrieves the first typed query parameter value having the specified name.
Retrieves the first typed query parameter value having the specified name.
- Annotations
- @deprecated
- Deprecated
(Since version 3.1.0) Use query(key)[T]
- def queryParamToOrElse[T](key: String, default: => T)(implicit codec: TextCodec[T]): T
Retrieves the first typed query parameter value having the specified name, or else uses the default value.
Retrieves the first typed query parameter value having the specified name, or else uses the default value.
- Annotations
- @deprecated
- Deprecated
(Since version 3.1.0) Use queryParamOrElse(key, default)
- def queryParamToZIO[T](key: String)(implicit codec: TextCodec[T]): IO[QueryParamsError, T]
Retrieves the first typed query parameter value having the specified name as ZIO.
Retrieves the first typed query parameter value having the specified name as ZIO.
- Annotations
- @deprecated
- Deprecated
(Since version 3.1.0) Use queryZIO(key)[T]
- def queryParamsTo[T](key: String)(implicit codec: TextCodec[T]): Either[QueryParamsError, Chunk[T]]
Retrieves all typed query parameter values having the specified name.
Retrieves all typed query parameter values having the specified name.
- Annotations
- @deprecated
- Deprecated
(Since version 3.1.0) Use query(key)[Chunk[T]
- def queryParamsToOrElse[T](key: String, default: => Iterable[T])(implicit codec: TextCodec[T]): Chunk[T]
Retrieves all query parameter values having the specified name, or else uses the default iterable.
Retrieves all query parameter values having the specified name, or else uses the default iterable.
- Annotations
- @deprecated
- Deprecated
(Since version 3.1.0) Use queryParamsOrElse(key, default)
- def queryParamsToZIO[T](key: String)(implicit codec: TextCodec[T]): IO[QueryParamsError, Chunk[T]]
Retrieves all typed query parameter values having the specified name as ZIO.
Retrieves all typed query parameter values having the specified name as ZIO.
- Annotations
- @deprecated
- Deprecated
(Since version 3.1.0) Use queryZIO(key)[Chunk[T]