// Serve the index page
req.response().sendFile("simpleform/index.html");
} else if (req.uri().startsWith("/form")) {
req.response().setChunked(true);
req.expectMultiPart(true);
req.endHandler(new VoidHandler() {
protected void handle() {
for (Map.Entry<String, String> entry : req.formAttributes()) {
req.response().write("Got attr " + entry.getKey() + " : " + entry.getValue() + "\n");
}
req.response().end();