Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
finagle + sinatra

README.markdown

Finatra Build Status

Finatra is a sinatra-inspired web framework for scala, running on top of Finagle

See the Getting Started guide or the Documentation for more information.

Get help on the finatra-users mailing list.

class HelloWorld extends Controller {

  get("/hello/:name") { request =>
    val name = request.routeParams("name").getOrElse("default user")
    render.plain("hello " + name).toFuture
  }

}

object App extends FinatraServer {
  register(new HelloWorld())
}

SBT (dual published for 2.9.x or 2.10.x)

"com.twitter" %% "finatra" % "1.6.0"

Maven

<dependency>
  <groupId>com.twitter</groupId>
  <artifactId>finatra_2.10</artifactId>
  <!-- for 2.9 <artifactId>finatra_2.9.2</artifactId> -->
  <version>1.6.0</version>
</dependency>

License

Copyright 2014 Twitter, Inc and other contributors

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

Something went wrong with that request. Please try again.