trait Mapper[A] extends AnyRef
A type class that allows the Endpoint to be mapped to either A => B
or A => Future[B]
.
- Source
- Mapper.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Mapper
- AnyRef
- Any
Implicitly
- by mapperFromFutureResponseHFunction
- by mapperFromFutureOutputHFunction
- by mapperFromResponseHFunction
- by mapperFromOutputHFunction
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- abstract type Out
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Mapper[A], B)
-
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 ensuring(cond: (Mapper[A]) ⇒ Boolean, msg: ⇒ Any): Mapper[A]
- def ensuring(cond: (Mapper[A]) ⇒ Boolean): Mapper[A]
- def ensuring(cond: Boolean, msg: ⇒ Any): Mapper[A]
- def ensuring(cond: Boolean): Mapper[A]
-
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] )
- def formatted(fmtstr: String): String
-
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
-
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( ... )
- def →[B](y: B): (Mapper[A], B)
Shadowed Implicit Value Members
-
def
apply(e: Endpoint[A]): Endpoint[Response]
- Implicit
-
This member is added by an implicit conversion from Mapper[A] to
Mapper.Aux[A, Response] performed by method mapperFromFutureResponseHFunction in io.finch.syntax.Mapper.
This conversion will take place only if all of the following constraints are met:
1. an implicit value of type shapeless.ops.function.FnToProduct.Aux[Mapper[A], (A) ⇒ FR] is in scope
2. an implicit value of type <:<[FR, H[Response]] is in scope
3. an implicit value of type ToTwitterFuture[H] is in scope
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(mapper: Mapper.Aux[A, Response]).apply(e)
-
def
apply(e: Endpoint[A]): Endpoint[B]
- Implicit
-
This member is added by an implicit conversion from Mapper[A] to
Mapper.Aux[A, B] performed by method mapperFromFutureOutputHFunction in io.finch.syntax.Mapper.
This conversion will take place only if all of the following constraints are met:
1. an implicit value of type shapeless.ops.function.FnToProduct.Aux[Mapper[A], (A) ⇒ FOB] is in scope
2. an implicit value of type ToTwitterFuture[H] is in scope
3. an implicit value of type <:<[FOB, H[Output[B]]] is in scope
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(mapper: Mapper.Aux[A, B]).apply(e)
-
def
apply(e: Endpoint[A]): Endpoint[Response]
- Implicit
- This member is added by an implicit conversion from Mapper[A] to Mapper.Aux[A, Response] performed by method mapperFromResponseHFunction in io.finch.syntax.HighPriorityMapperConversions. This conversion will take place only if an implicit value of type shapeless.ops.function.FnToProduct.Aux[Mapper[A], (A) ⇒ R] is in scope and at the same time an implicit value of type <:<[R, Response] is in scope.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(mapper: Mapper.Aux[A, Response]).apply(e)
-
def
apply(e: Endpoint[A]): Endpoint[B]
- Implicit
- This member is added by an implicit conversion from Mapper[A] to Mapper.Aux[A, B] performed by method mapperFromOutputHFunction in io.finch.syntax.HighPriorityMapperConversions. This conversion will take place only if an implicit value of type shapeless.ops.function.FnToProduct.Aux[Mapper[A], (A) ⇒ OB] is in scope and at the same time an implicit value of type <:<[OB, Output[B]] is in scope.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(mapper: Mapper.Aux[A, B]).apply(e)
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.