QueryParamDecoderMatcher
org.http4s.dsl.impl.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) => ...
Attributes
- Source
- Path.scala
- Graph
-
- Supertypes
- Known subtypes
-
class QueryParamMatcher[T]
Members list
In this article