Skip to content

Instantly share code, notes, and snippets.

@CharlieKuharski
Created August 28, 2015 04:40
package vertxio.demo;
import io.vertx.core.AbstractVerticle;
public class MyDemo extends AbstractVerticle{
public void start(){
vertx.createHttpServer()
.requestHandler(req -> {
req.response().putHeader("content-type", "text/html")
.end("<html><body><h1>Hello from vert.x!</h1></body></html>");
}).listen(8080);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment