import net.codestory.http.WebServer @Grab(group='net.code-story', module='http', version='2.98') def startWebServer() { new WebServer() .configure {routes -> routes.anyGet {ctx -> "Hello"}} .start() } startWebServer()