We have talked about routes, and how to pass parameters to controllers. Let's now talk about what we can do with the controller.
The method defined in the route must return a
play.api.mvc.Action instance. The
Action type is a thin wrapper around the type
Request[A] => Result, where
Request[A] identifies an HTTP request and
Result is an HTTP response.
An HTTP response, as we saw in Chapter 7, Web APIs, is composed of: