Packages

object Router

Source
Router.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Router
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply(mappings: (String, HttpService)*): HttpService

    Defines an HttpService based on list of mappings.

    Defines an HttpService based on list of mappings.

    See also

    define

  2. def define(mappings: (String, HttpService)*)(default: HttpService = HttpService.empty)(implicit fallthrough: Fallthrough[Response]): HttpService

    Defines an HttpService based on list of mappings, a default Service to be used when none in the list match incomming requests, and an implicit Fallthrough which decides whether a request was matched.

    Defines an HttpService based on list of mappings, a default Service to be used when none in the list match incomming requests, and an implicit Fallthrough which decides whether a request was matched.

    The mappings are processed in descending order (longest first) of prefix length.