Implicit conversion that adds convenience methods to endpoint for optional values.
Implicit conversion that allows to call as[A]
on any Endpoint[String]
to perform a type
conversion based on an implicit DecodeRequest[A]
which must be in scope.
Implicit conversion that allows to call as[A]
on any Endpoint[String]
to perform a type
conversion based on an implicit DecodeRequest[A]
which must be in scope.
The resulting reader will fail when type conversion fails.
Implicit conversion that allows to call as[A]
on any Endpoint[Option[String]]
to perform a
type conversion based on an implicit DecodeRequest[A]
which must be in scope.
Implicit conversion that allows to call as[A]
on any Endpoint[Option[String]]
to perform a
type conversion based on an implicit DecodeRequest[A]
which must be in scope.
The resulting endpoint will fail when the result is non-empty and type conversion fails. It will succeed if the result is empty or type conversion succeeds.
Implicit conversion that allows to call as[A]
on any Endpoint[Seq[String]]
to perform a
type conversion based on an implicit DecodeRequest[A]
which must be in scope.
Implicit conversion that allows to call as[A]
on any Endpoint[Seq[String]]
to perform a
type conversion based on an implicit DecodeRequest[A]
which must be in scope.
The resulting endpoint will fail when the result is non-empty and type conversion fails on one
or more of the elements in the Seq
. It will succeed if the result is empty or type conversion
succeeds for all elements.
Generically derive a very basic instance of Endpoint for a given type A
.
Provides extension methods for Endpoint to support coproduct and path syntax.