Implicit conversion that adds convenience methods to endpoint for optional values.
Creates an Endpoint that always matches and returns a given value (evaluated eagerly).
Creates an empty Endpoint (an endpoint that never matches) for a given type.
Creates an Endpoint that always matches and returns a given value (evaluated lazily).
Creates an Endpoint that always matches and returns a given value (evaluated lazily).
This might be useful for wrapping functions returning arbitrary value within Endpoint context.
Example: the following endpoint will recompute a random integer on each request.
val nextInt: Endpoint[Int] = Endpoint.lift(scala.util.random.nextInt)
Creates an Endpoint that always matches and returns a given Future
(evaluated lazily).
Creates an Endpoint that always matches and returns a given Output
(evaluated lazily).
Creates an Endpoint that always matches and returns a given Future[Output]
(evaluated lazily).
Provides extension methods for Endpoint to support coproduct and path syntax.