Created
June 9, 2015 16:40
-
-
Save dgageot/0c3a6d25c3832cfab958 to your computer and use it in GitHub Desktop.
fluent-http Groovy Style
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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