PKOfficial / cask

Cask: a Scala HTTP micro-framework

Home Page:http://www.lihaoyi.com/cask/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cask: a Scala HTTP micro-framework Build Status Gitter Chat Patreon

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 project. It aims to bring simplicity, flexibility and ease-of-use to Scala webservers, avoiding cryptic DSLs or complicated asynchrony.

About

Cask: a Scala HTTP micro-framework

http://www.lihaoyi.com/cask/

License:Other


Languages

Language:Scala 91.7%Language:CSS 5.8%Language:JavaScript 1.6%Language:Shell 0.7%Language:Python 0.2%