Skip to content

gavares/cask

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Cask is profiled using the JProfiler Java Profiler, courtesy of EJ Technologies

About

Cask: a Scala HTTP micro-framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 91.7%
  • CSS 5.7%
  • JavaScript 1.6%
  • Other 1.0%