trait RequestImplicits extends AnyRef
Ordering
- Alphabetic
- By Inheritance
Inherited
- RequestImplicits
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- 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) }
- 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) }
Useful mixin for methods that do implicit transformations of a request