Created
May 30, 2011 12:22
-
-
Save alextkachman/998829 to your computer and use it in GitHub Desktop.
Simplest web server to handle static content
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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