Skip to content

Instantly share code, notes, and snippets.

@alextkachman
Created May 30, 2011 12:22
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 alextkachman/998829 to your computer and use it in GitHub Desktop.
Save alextkachman/998829 to your computer and use it in GitHub Desktop.
Simplest web server to handle static content
@Typed package example
import org.mbte.gretty.httpserver.GrettyServer
new GrettyServer() [
// server local address
localAddress: new InetSocketAddress(8081),
// directory where to find static resources
static: "../static",
default: {
redirect "/test.html"
}
].start ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment