Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
fluent-http Groovy Style
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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment