object Router
- Alphabetic
- By Inheritance
- Router
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def concatPrefix(newPrefix: String, existingPrefix: String): String
Concatenate another prefix with an existing prefix, collapsing extra slashes.
Concatenate another prefix with an existing prefix, collapsing extra slashes. If the existing prefix is empty or "/" then the new prefix replaces the old one. Otherwise the new prefix is prepended to the old one with a slash in between, ignoring a final slash in the new prefix or an initial slash in the existing prefix.
- val empty: Router
An empty router.
An empty router.
Never returns an handler from the routes function.
- def from(routes: Routes): Router
Create a new router from the given partial function
Create a new router from the given partial function
- routes
The routes partial function
- returns
A router that uses that partial function
- def load(env: Environment, configuration: Configuration): Option[Class[_ <: Router]]
Try to load the configured router class.
Try to load the configured router class.
- returns
The router class if configured or if a default one in the root package was detected.
- object Attrs
Request attributes used by the router.
- object RequestImplicits
Utilities for routing.