QueryParamDecoderMatcher
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