QueryStringParam

endpoints4s.play.server.Urls.QueryStringParam
trait QueryStringParam[A]

A query string parameter codec for type A.

The trait Urls provides implicit instances of type QueryStringParam[A] for basic types (e.g., Int, String, etc.). You can create additional instances by transforming or refining the existing instances with xmap and xmapPartial.

Attributes

Note

This type has implicit methods provided by the PartialInvariantFunctorSyntax and the InvariantFunctorSyntax classes.

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def decode(name: String, qs: Map[String, Seq[String]]): Validated[A]
Implicitly added by optionalQueryStringParam

Attributes

Returns

a decoded A value, or None if it was malformed

def decode(name: String, qs: Map[String, Seq[String]]): Validated[A]

Attributes

Returns

a decoded A value, or None if it was malformed

def encode(name: String, a: A): Map[String, Seq[String]]
Implicitly added by optionalQueryStringParam
def encode(name: String, a: A): Map[String, Seq[String]]