QueryParamMatcher

org.http4s.dsl.impl.QueryParamMatcher
abstract class QueryParamMatcher[T] extends QueryParamDecoderMatcher[T]

param extractor using QueryParamDecoder:

 case class Foo(i: Int)
 implicit val fooDecoder: QueryParamDecoder[Foo] = ...
 implicit val fooParam: QueryParam[Foo] = ...

 object FooMatcher extends QueryParamDecoderMatcher[Foo]
 val routes = HttpRoutes.of {
   case GET -> Root / "closest" :? FooMatcher(2) => ...

Attributes

Source:
Path.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Inherited methods

def unapply(params: Map[String, Seq[String]]): Option[T]

Attributes

Inherited from:
QueryParamDecoderMatcher
Source:
Path.scala
def unapplySeq(params: Map[String, Seq[String]]): Option[Seq[T]]

Attributes

Inherited from:
QueryParamDecoderMatcher
Source:
Path.scala