c

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) => ...
Source
Path.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. QueryParamMatcher
  2. QueryParamDecoderMatcher
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new QueryParamMatcher()(implicit arg0: QueryParamDecoder[T], arg1: QueryParam[T])

Value Members

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