concept Play2-mini in category scala

appears as: Play2-mini
Scala in Action

This is an excerpt from Manning's book Scala in Action.

12.4. Adding asynchronous HTTP support with Play2-mini

Play2-mini is a lightweight REST framework on top of the Play2 framework. It maps an HTTP request to a function that takes an HTTP request and returns a response. Behind the scenes, all the requests are handled using actors. It also provides support for nonblocking, asynchronous HTTP support of the Play2 framework. Behind the scenes, the Play2 framework uses the Netty server that implements the Java NIO API. The next section sets up the Akkaoogle project to use the Play2-mini framework.

For your application to work with Play2-mini, you need to implement the Setup by passing a concrete implementation of the Application trait. Here’s the implementation of the Setup: