summaryrefslogblamecommitdiff
path: root/readme.md
blob: 1f6575bf5197f7abdf46f0d3d646afd7f50b0b98 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                  
                                              










                                                                               
 
                                              
Cask: a Scala HTTP micro-framework
==================================

```scala
object MinimalApplication extends cask.MainRoutes{
  @cask.get("/")
  def hello() = {
    "Hello World!"
  }

  @cask.post("/do-thing")
  def doThing(request: cask.Request) = {
    new String(request.readAllBytes()).reverse
  }

  initialize()
}
```

Cask is a simple Scala web framework inspired by Python's
[Flask](http://flask.pocoo.org/docs/1.0/) project. It aims to bring simplicity,
flexibility and ease-of-use to Scala webservers, avoiding cryptic DSLs or
complicated asynchrony.


- [Documentation](http://www.lihaoyi.com/cask/)