Mounted

io.eezo.core.html.Url.Mounted
See theMounted companion object
final case class Mounted

An address inside this application, which travels with the prefix its routes are mounted under. The payload is normalised on the way in by Url.normalise, the same function Route.under normalises a prefix with, so that Mounted("posts") and Mounted("/posts") are one value rather than two that render alike.

Attributes

Companion
object
Source
Url.scala

Members list

Value members

Inherited methods

def /(segment: String): Url

Appends one path segment, owning the slash between them so that neither caller has to.

Appends one path segment, owning the slash between them so that neither caller has to.

Attributes

Inherited from:
Url
Source
Url.scala
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala
def under(prefix: String): Url

This URL as seen from under prefix. Absolute is the answer to "not mine to move".

This URL as seen from under prefix. Absolute is the answer to "not mine to move".

The concatenation goes back through Url.Mounted.apply rather than the private constructor, so the result is normalised the way any other Mounted is. That is what keeps a root url from leaving a slash behind it: Mounted("/").under("/admin") is /admin, not /admin/.

Attributes

Inherited from:
Url
Source
Url.scala