Constructs an Action with default content, and no request parameter.
Constructs an Action with default content, and no request parameter.
For example:
val hello = Action {
Ok("Hello!")
}
the action code
an action
Constructs an Action with default content.
Constructs an Action with default content.
For example:
val echo = Action { request =>
Ok("Got request [" + request + "]")
}
the action code
an action
Constructs an Action.
Constructs an Action.
For example:
val echo = Action(parse.anyContent) { request =>
Ok("Got request [" + request + "]")
}
the type of the request body
the BodyParser to use to parse the request body
the action code
an action
Helper object to create
Actionvalues.