QueryParamMatcher
org.http4s.dsl.impl.QueryParamMatcher
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