Router
object Router
class Object
trait Matchable
class Any
Value members
Concrete methods
Defines an HttpRoutes based on list of mappings.
Defines an HttpRoutes based on list of mappings.
- See also
define
def define[F[_]](mappings: (String, HttpRoutes[F])*)(default: HttpRoutes[F])(`evidence$2`: Monad[F]): HttpRoutes[F]
Defines an HttpRoutes based on list of mappings and a default Service to be used when none in the list match incomming requests.
Defines an HttpRoutes based on list of mappings and a default Service to be used when none in the list match incomming requests.
The mappings are processed in descending order (longest first) of prefix length.