Guarded

io.eezo.http.Guarded
See theGuarded companion class
object Guarded

Attributes

Companion
class
Source
Guarded.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Guarded.type

Members list

Value members

Concrete methods

def public[A]: Guarded[A]

Anyone may reach it: no action is covered, nothing is wrapped, no login page is carried and nobody is named.

Anyone may reach it: no action is covered, nothing is wrapped, no login page is carried and nobody is named.

A def rather than a val, because Guarded is invariant in A and one shared instance would need a cast at every use. The four fields it builds hold nothing, so the allocation is the cheapest thing in a route table's construction.

It is public and named, unlike Actions' all-seven default, which is a given precisely so that there is one way to say it. Here the opposite is wanted: "anyone may reach this" is a decision somebody made, and it should be legible in the companion of the thing it was made about.

Attributes

Source
Guarded.scala