I have an interrogation about the Ok
helper in play.api.mvc.Results
.
When I do a:
def index = Action {
Ok("Hello world!")
}
in a Play! controller, I am supposed to end up with a Result
somehow. Am I not?
But all I can see in the api documentation is a val Ok: Status
. My question is how can scala end up with a Result with an expression such as Ok("Hello world")
?
Is there some apply
called on Status somewhere? If no how is the Result returned from a simple val
??