QueryParamDecoderMatcher

org.http4s.dsl.impl.QueryParamDecoderMatcher
abstract class QueryParamDecoderMatcher[T](name: String)(implicit evidence$1: 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) => ...

Attributes

Source
Path.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

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

Attributes

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

Attributes

Source
Path.scala