Packages

t

play.api.mvc

RequestImplicits

trait RequestImplicits extends AnyRef

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RequestImplicits
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. implicit def request2flash(implicit request: RequestHeader): Flash

    Retrieve the flash scope implicitly from the request.

    Retrieve the flash scope implicitly from the request.

    For example:

    def index(name:String) = Action { implicit request =>
      val message = request2flash("message")
      Ok("Got " + message)
    }
  2. implicit def request2session(implicit request: RequestHeader): Session

    Retrieves the session implicitly from the request.

    Retrieves the session implicitly from the request.

    For example:

    def index(name:String) = Action { implicit request =>
      val username = request2session("username")
      Ok("Hello " + username)
    }