Skip to content

Instantly share code, notes, and snippets.

@dgageot
Created June 9, 2015 16:40
Show Gist options
  • Save dgageot/0c3a6d25c3832cfab958 to your computer and use it in GitHub Desktop.
Save dgageot/0c3a6d25c3832cfab958 to your computer and use it in GitHub Desktop.
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