Trait/Object

io.finch.route

Router

Related Docs: object Router | package route

Permalink

trait Router[A] extends AnyRef

A router that extracts some value of the type A from the given route.

Self Type
Router[A]
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Router
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def apply(input: Input): Option[(Input, () ⇒ Future[A])]

    Permalink

    Extracts some value of type A from the given input.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def /[B](that: Router[B])(implicit adjoin: PairAdjoin[A, B]): Router[PairAdjoin.Out]

    Permalink

    Composes this router with the given that router.

    Composes this router with the given that router. The resulting router will succeed only if both this and that routers succeed.

  4. def :+:[B](that: Router[B])(implicit adjoin: Adjoin[:+:[B, :+:[A, CNil]]]): Router[shapeless.ops.adjoin.Adjoin.Out]

    Permalink

    Compose this router with another in such a way that coproducts are flattened.

  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def ?[B](that: RequestReader[B])(implicit adjoin: PairAdjoin[A, B]): Router[PairAdjoin.Out]

    Permalink

    Composes this router with the given io.finch.request.RequestReader.

  7. def ap[B](fn: Router[(A) ⇒ B]): Router[B]

    Permalink

    Flat-maps this router to the given function A => Router[B].

  8. def apply(mapper: Mapper[A]): Router[Out]

    Permalink

    Maps this Router to either A => B or A => Future[B].

  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def embedFlatMap[B](fn: (A) ⇒ Future[B]): Router[B]

    Permalink

    Flat-maps the router to the given function A => Future[B].

    Flat-maps the router to the given function A => Future[B]. If the given function None the resulting router will also return None.

  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def map[B](fn: (A) ⇒ B): Router[B]

    Permalink

    Maps this router to the given function A => B.

  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toService[R](implicit arg0: ToRequest[R], ts: ToService[R, A]): Service[R, Response]

    Permalink

    Converts this router to a Finagle service from a request-like type R to a com.twitter.finagle.httpx.Response.

  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def withFilter(p: (A) ⇒ Boolean): Router[A]

    Permalink
  29. def |[B >: A](that: Router[B]): Router[B]

    Permalink

    Sequentially composes this router with the given that router.

    Sequentially composes this router with the given that router. The resulting router will succeed if either this or that routers are succeed.

Inherited from AnyRef

Inherited from Any

Ungrouped