object Endpoint
Provides extension methods for Endpoint to support coproduct and path syntax.
- Source
- Endpoint.scala
- Alphabetic
- By Inheritance
- Endpoint
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- implicit final class HListEndpointOps[L <: HList] extends AnyVal
-
implicit final
class
OptionEndpointOps[A] extends AnyVal
Implicit conversion that adds convenience methods to endpoint for optional values.
- type Result[A] = EndpointResult[A]
- implicit final class ValueEndpointOps[B] extends AnyVal
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
const[A](a: A): Endpoint[A]
Creates an Endpoint that always matches and returns a given value (evaluated eagerly).
-
def
empty[A]: Endpoint[A]
Creates an empty Endpoint (an endpoint that never matches) for a given type.
- implicit val endpointInstance: Alternative[Endpoint]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
lift[A](a: ⇒ A): Endpoint[A]
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)
-
def
liftAsync[A](fa: ⇒ Future[A]): Endpoint[A]
Creates an Endpoint that always matches and returns a given
Future
(evaluated lazily). -
def
liftOutput[A](oa: ⇒ Output[A]): Endpoint[A]
Creates an Endpoint that always matches and returns a given
Output
(evaluated lazily). -
def
liftOutputAsync[A](foa: ⇒ Future[Output[A]]): Endpoint[A]
Creates an Endpoint that always matches and returns a given
Future[Output]
(evaluated lazily). -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
This is the API documentation for finch
Finch is a thin layer of purely functional basic blocks atop of [Finagle][finagle] for building composable HTTP APIs. Its mission is to provide the developers simple and robust HTTP primitives being as close as possible to the bare metal Finagle API.
Finch uses multi-project structure and contains of the following _modules_:
Please refer to the documentation for a more detailed introduction to the library.