Sequentially composes this router with the given that
router.
Sequentially composes this router with the given that
router. The resulting router will succeed only if both this
and that
routers are succeed.
Sequentially composes this router with the given that
router.
Sequentially composes this router with the given that
router. The resulting router will succeed only if both this
and that
routers are succeed.
Sequentially composes this router with the given that
router.
Sequentially composes this router with the given that
router. The resulting router will succeed only if both this
and that
routers are succeed.
Sequentially composes this router with the given that
Router0.
Extracts some value of type A
from the given route
.
Extracts some value of type A
from the given route
. In case of success it returns Some
tuple of the _rest_ of
the route and the fetched _value_. In case of failure it returns None
.
Flat-maps the router to the given function A => Option[B]
.
Flat-maps the router to the given function A => Option[B]
. If the given function None
the resulting router will
also return None
.
Flat-maps this router to the given function A => RouterN[B]
.
Flat-maps this router to the given function A => RouterN[B]
.
Maps this router to the given function A => B
.
Maps this router to the given function A => B
.
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.
Router composition via orElse
operator happens in a _greedy_ manner: it minimizes the output route tail. Thus, if
both of the routers can handle the given route
the router is being chosen is that which eats more.
A RouterN that extracts a path token.