QueryParamDecoderMatcher

abstract class QueryParamDecoderMatcher[T](name: String)(implicit evidence$2: QueryParamDecoder[T])

param extractor using QueryParamDecoder:

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

 object FooMatcher extends QueryParamDecoderMatcher[Foo]("foo")
 val routes = HttpRoutes.of {
   case GET -> Root / "closest" :? FooMatcher(2) => ...
Source:
Path.scala
class Object
trait Matchable
class Any

Value members

Concrete methods

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