Skip to content

Instantly share code, notes, and snippets.

@j14159
Created February 3, 2013 00:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j14159/4699916 to your computer and use it in GitHub Desktop.
Save j14159/4699916 to your computer and use it in GitHub Desktop.
Floor example
"/hello/:name" get {
request => Future {
/*
* we're in The Future here so you can do
* heavier stuff without blocking up other
* things like the Netty handler.
*/
val name = request.path(":name")
Response.ok(s"Hello, ${name}")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment