Skip to content

Instantly share code, notes, and snippets.

@glaforge
Forked from dgageot/fluentHttp.groovy
Last active August 29, 2015 14:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glaforge/b5c55651f523b3281fc9 to your computer and use it in GitHub Desktop.
Save glaforge/b5c55651f523b3281fc9 to your computer and use it in GitHub Desktop.
Fluent HTTP further groovyfied!
@Grab('net.code-story:http:2.98')
import net.codestory.http.WebServer
new WebServer()
.configure { routes -> routes.anyGet { ctx -> "Hello"} }
.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment