c

org.http4s.dsl.impl

QueryParamDecoderMatcher

abstract class QueryParamDecoderMatcher[T] extends AnyRef

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
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. QueryParamDecoderMatcher
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new QueryParamDecoderMatcher(name: String)(implicit arg0: QueryParamDecoder[T])

Value Members

  1. def unapply(params: Map[String, Seq[String]]): Option[T]
  2. def unapplySeq(params: Map[String, Seq[String]]): Option[Seq[T]]